[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/kernel/infocollector/ -> ezinfocollectorfunctioncollection.php (source)

   1  <?php
   2  //
   3  // Definition of eZInfocollectorFunctionCollection class
   4  //
   5  // Created on: <03-Oct-2006 13:05:24 sp>
   6  //
   7  
   8  // Copyright (C) 1999-2004 eZ systems as. All rights reserved.
   9  //
  10  // This source file is part of the eZ publish (tm) Open Source Content
  11  // Management System.
  12  //
  13  // This file may be distributed and/or modified under the terms of the
  14  // "GNU General Public License" version 2 as published by the Free
  15  // Software Foundation and appearing in the file LICENSE included in
  16  // the packaging of this file.
  17  //
  18  // Licencees holding a valid "eZ publish professional licence" version 2
  19  // may use this file in accordance with the "eZ publish professional licence"
  20  // version 2 Agreement provided with the Software.
  21  //
  22  // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
  23  // THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  24  // PURPOSE.
  25  //
  26  // The "eZ publish professional licence" version 2 is available at
  27  // http://ez.no/ez_publish/licences/professional/ and in the file
  28  // PROFESSIONAL_LICENCE included in the packaging of this file.
  29  // For pricing of this licence please contact us via e-mail to licence@ez.no.
  30  // Further contact information is available at http://ez.no/company/contact/.
  31  //
  32  // The "GNU General Public License" (GPL) is available at
  33  // http://www.gnu.org/copyleft/gpl.html.
  34  //
  35  // Contact licence@ez.no if any conditions of this licencing isn't clear to
  36  // you.
  37  //
  38  
  39  /*! \file ezinfocollectorfunctioncollection.php
  40  */
  41  
  42  /*!
  43    \class eZInfocollectorFunctionCollection ezinfocollectorfunctioncollection.php
  44    \brief The class eZInfocollectorFunctionCollection does
  45  
  46  */
  47  
  48  class eZInfocollectorFunctionCollection
  49  {
  50      /*!
  51       Constructor
  52      */
  53      function eZInfocollectorFunctionCollection()
  54      {
  55      }
  56  
  57      function fetchCollectedInfoCount( $objectAttributeID, $objectID, $value, $creatorID = false, $userIdentifier = false )
  58      {
  59          include_once ( 'kernel/classes/ezinformationcollection.php' );
  60          if ( $objectAttributeID )
  61              $count = eZInformationCollection::fetchCountForAttribute( $objectAttributeID, $value );
  62          else
  63              $count = eZInformationCollection::fetchCollectionsCount( $objectID, $creatorID, $userIdentifier );
  64          return array( 'result' => $count );
  65      }
  66  
  67      function fetchCollectedInfoCountList( $objectAttributeID )
  68      {
  69          include_once ( 'kernel/classes/ezinformationcollection.php' );
  70          $count = eZInformationCollection::fetchCountList( $objectAttributeID );
  71          return array( 'result' => $count );
  72      }
  73  
  74      function fetchCollectedInfoCollection( $collectionID, $contentObjectID )
  75      {
  76          include_once ( 'kernel/classes/ezinformationcollection.php' );
  77          $collection = false;
  78          if ( $collectionID )
  79              $collection = eZInformationCollection::fetch( $collectionID );
  80          else if ( $contentObjectID )
  81          {
  82              $userIdentifier = eZInformationCollection::currentUserIdentifier();
  83              $collection = eZInformationCollection::fetchByUserIdentifier( $userIdentifier, $contentObjectID );
  84          }
  85          return array( 'result' => &$collection );
  86      }
  87  
  88      function fetchCollectionsList( $objectID = false, $creatorID = false, $userIdentifier = false, $limit = false, $offset = false, $sortBy = false )
  89      {
  90          include_once ( 'kernel/classes/ezinformationcollection.php' );
  91  
  92          $collection = eZInformationCollection::fetchCollectionsList( $objectID,
  93                                                                       $creatorID,
  94                                                                       $userIdentifier,
  95                                                                       array( 'limit' => $limit, 'offset' => $offset ),
  96                                                                       $sortBy
  97                                                                     );
  98          return array( 'result' => &$collection );
  99       }
 100  
 101  
 102  }
 103  
 104  ?>


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