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

different custom field types available \ingroup DAO

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

Définit 1 class

CustomFields:: (9 méthodes):
  CustomFields()
  getCustomField()
  getCustomFieldByName()
  getBlogCustomFields()
  getNumBlogCustomFields()
  addCustomField()
  removeCustomField()
  updateCustomField()
  mapRow()


Classe: CustomFields  - X-Ref

Model for the custom fields

CustomFields()   X-Ref
Pas de description

getCustomField( $id )   X-Ref
returns a custom field given its id

param: id The id of the custom field
return: A CustomField object with information about the custom field

getCustomFieldByName( $blogId, $fieldName )   X-Ref
returns a custom field given its name and the blog where it belongs

param: blogId The id of the blog where this field belongs
param: fieldName The name of the custom field
return: A CustomField object with information about the custom field

getBlogCustomFields( $blogId, $includeHidden = true, $page = -1, $itemsPerPage = 15 )   X-Ref
returns all the custom fields defined in a blog

param: blogId The id of the blog
param: includeHidden Whether to return the fields that have been marked as
param: page
param: itemsPerPage
return: An array of CustomField objects with information about the different

getNumBlogCustomFields( $blogId, $includeHidden = true )   X-Ref
returns the number of custom fields defined for the blog

param: blogId
param: includeHidden

addCustomField( &$field )   X-Ref
adds a custom field to the database

param: field A CustomField object
return: True if successful or false otherwise.

removeCustomField( $id, $deleteValues = true )   X-Ref
removes a custom field, but also all the values that have been created
based on this field and that have been assigned to different articles.
Otherwise, we would have data which is not linked to any article... but if still
needed, set the second parameter to false

param: id
param: deleteValues
return: Returns true if successful or false otherwise

updateCustomField( $field )   X-Ref
update a field in the database

param: field
return: True if successful or false otherwise

mapRow( $row )   X-Ref




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