[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/dao/ -> articlestatus.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/dao/status/genericstatuslist.class.php" );
   4      
   5      define( "POST_STATUS_ALL", -1, true ); 
   6      define( "POST_STATUS_PUBLISHED", 1, true );
   7      define( "POST_STATUS_DRAFT", 2, true );
   8      define( "POST_STATUS_DELETED", 3, true );    
   9      
  10      /**
  11       * This class keeps track of all the possible status that an article can have. If plugins dynamically 
  12       * register new article statuses, this class will still be able to handle them.
  13       * 
  14       * These are the out of the box statues for posts:
  15       *
  16       * - POST_STATUS_PUBLISHED
  17       * - POST_STATUS_DRAFT
  18       * - POST_STATUS_DELETED
  19       *
  20       * \ingroup DAO
  21       */        
  22      class ArticleStatus extends GenericStatusList
  23      {
  24      
  25          /**
  26           * returns a list with all the post statuses that have been defined
  27           * so far in the code.
  28           *
  29           * @return Returns an array where every position is an array with two
  30           * keys: "constant" and "value", where "constant" is the name of the constant
  31           * that defines this status and "value" is the value assigned to it
  32           */
  33          function getStatusList( $includeStatusAll = false )
  34          {
  35              return( GenericStatusList::getStatusList( "POST_STATUS_", "POST_STATUS_ALL", $includeStatusAll ));
  36          }
  37      }
  38  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics