eZ Publish  [4.0]
notification.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Created on: <26-May-2003 09:04:14 sp>
00004 //
00005 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00006 // SOFTWARE NAME: eZ Publish
00007 // SOFTWARE RELEASE: 4.0.x
00008 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS
00009 // SOFTWARE LICENSE: GNU General Public License v2.0
00010 // NOTICE: >
00011 //   This program is free software; you can redistribute it and/or
00012 //   modify it under the terms of version 2.0  of the GNU General
00013 //   Public License as published by the Free Software Foundation.
00014 //
00015 //   This program is distributed in the hope that it will be useful,
00016 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 //   GNU General Public License for more details.
00019 //
00020 //   You should have received a copy of version 2.0 of the GNU General
00021 //   Public License along with this program; if not, write to the Free
00022 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00023 //   MA 02110-1301, USA.
00024 //
00025 //
00026 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00027 //
00028 
00029 /*! \file notification.php
00030 */
00031 
00032 //include_once( 'kernel/classes/notification/eznotificationeventfilter.php' );
00033 //include_once( 'kernel/classes/notification/eznotificationevent.php' );
00034 //include_once( "lib/ezdb/classes/ezdb.php" );
00035 
00036 $event = eZNotificationEvent::create( 'ezcurrenttime', array() );
00037 
00038 $db = eZDB::instance();
00039 $db->begin();
00040 
00041 $event->store();
00042 if ( !$isQuiet )
00043     $cli->output( "Starting notification event processing" );
00044 eZNotificationEventFilter::process();
00045 
00046 $db->commit();
00047 
00048 
00049 if ( !$isQuiet )
00050     $cli->output( "Done" );
00051 
00052 ?>