[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/notification/ -> eznotificationfunctioncollection.php (source)

   1  <?php
   2  //
   3  // Definition of eZNotificationFunctionCollection class
   4  //
   5  // Created on: <14-May-2003 16:41:20 sp>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*! \file eznotificationfunctioncollection.php
  30  */
  31  
  32  /*!
  33    \class eZNotificationFunctionCollection eznotificationfunctioncollection.php
  34    \brief The class eZNotificationFunctionCollection does
  35  
  36  */
  37  
  38  class eZNotificationFunctionCollection
  39  {
  40      /*!
  41       Constructor
  42      */
  43      function eZNotificationFunctionCollection()
  44      {
  45      }
  46  
  47      function handlerList()
  48      {
  49          include_once ( 'kernel/classes/notification/eznotificationeventfilter.php' );
  50          $availableHandlers =& eZNotificationEventFilter::availableHandlers();
  51          return array( 'result' => $availableHandlers );
  52      }
  53  
  54      function digestHandlerList( $time, $address )
  55      {
  56          $handlers = eZGeneralDigestHandler::fetchHandlersForUser( $time, $address );
  57          return array( 'result' => $handlers );
  58      }
  59  
  60      function digestItems( $time, $address, $handler )
  61      {
  62          $items = eZGeneralDigestHandler::fetchItemsForUser( $time, $address, $handler );
  63          return array( 'result' => $items );
  64      }
  65  
  66      function eventContent( $eventID )
  67      {
  68          $event = eZNotificationEvent::fetch( $eventID );
  69          return array( 'result' => $event->content() );
  70      }
  71  
  72      function subscribedNodesCount()
  73      {
  74          include_once ( 'kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php' );
  75  
  76          $count = eZSubTreeHandler::rulesCount();
  77          return array( 'result' => $count );
  78      }
  79  
  80      function subscribedNodes( $offset = false, $limit = false )
  81      {
  82          include_once ( 'kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php' );
  83  
  84          $nodes =& eZSubTreeHandler::rules( false, $offset, $limit );
  85          return array( 'result' => $nodes );
  86      }
  87  }
  88  
  89  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7