[ 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/status/ -> genericstatuslist.class.php (sommaire)

(pas de description)

Poids: 70 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

GenericStatusList:: (3 méthodes):
  getStatusList()
  isValidStatus()
  getDefaultStatus()


Classe: GenericStatusList  - X-Ref

Generic class for handling custom statuses that are defined via global constants
(as opposed as needing to be registered via some static method in this class) What this class
does is can the list of globally defined constants and grab those that start with a certain prefix,
such as "BLOG_STATUS_", since that will be an indicator that the given constant is a valid status.
While this method is far from clean, it allows to create new statuses on the fly with very
little effort.

\ingroup DAO
getStatusList( $prefix, $statusAllId, $includeStatusAll = false )   X-Ref
returns a list with all the user statuses that have been defined
so far in the code.

return: Returns an array where every position is an array with two

isValidStatus( $status )   X-Ref

param: status The status code we'd like to check
return: Returns true if the status is valid or false otherwise. By default this

getDefaultStatus()   X-Ref
returns the default status code for this class. By default, it is just 'true'
so it is advisable that classes inheriting from this one override this method
with their own

return: The default status



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