[ Index ]
 

Code source de SPIP Agora 1.4

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

title

Body

[fermer]

/Agora1-4/ecrire/include/bd/ -> mapping.php (sommaire)

(pas de description)

Poids: 365 lignes (10 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

BD_mapping:: (17 méthodes):
  factory()
  BD_mapping()
  getDbParameters()
  setDbParameters()
  getDbOptions()
  setDbOptions()
  _getDB()
  getArticleId()
  setArticleId()
  getMappingId()
  setMappingId()
  _fetchData()
  createEntry()
  deleteEntryByArticleIdAndMappingId()
  deleteEntryByArticleId()
  getMappings()
  loadArticle()


Classe: BD_mapping  - X-Ref

BD_mapping is a base class for mapping and article relation managements.

factory($dbParameters, $dbOptions = null)   X-Ref
This method is a factory static method. It should be used to get any
specific implementation instace of Article business data type.

param: BD_parameters DB connection parameters

BD_mapping()   X-Ref
DB_article constructor.


getDbParameters()   X-Ref
Getter method to retreive the instance Parameters object

return: DB parameters

setDbParameters($dbParameters)   X-Ref
Setter method to set the instance Parameters object

param: $dbParameters     new DB parameters

getDbOptions()   X-Ref
Getter method to retreive the instance Options array

return: array

setDbOptions($dbOptions)   X-Ref
Setter method to set the instance Parameters object

param: array     array of PEAR::DB options

_getDB($dbParameters = null)   X-Ref
Protected method used to get an PEAR::DB instance
using the parameters stored in the _dbParameters field

return: Newly creating PEAR::DB object

getArticleId()   X-Ref
Pas de description

setArticleId($articleId)   X-Ref
Pas de description

getMappingId()   X-Ref
Pas de description

setMappingId($mappingId)   X-Ref
Pas de description

_fetchData($row)   X-Ref
This method is used to fetch result set fields into the object fields

param: int $idArticle id of article to load

createEntry($articleId, $mappingId)   X-Ref
This method is used to create an entry in the database


deleteEntryByArticleIdAndMappingId($articleId, $mappingId)   X-Ref
This method is used to delete an entry from the database


deleteEntryByArticleId($articleId)   X-Ref
This method is used to delete multiples entries from the database


getMappings($articleId)   X-Ref
This method is used to list entries from the database corresponding to an article ID


loadArticle($mappingId)   X-Ref
This method is used to find the parent of a mapping from the database




Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7