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

(pas de description)

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

Définit 1 class

BD_objectListData:: (17 méthodes):
  BD_objectListData()
  _getComputed()
  _setComputed()
  _getCurrentQuery()
  _setCurrentQuery()
  _getQueryIsLimited()
  _setQueryIsLimited()
  _getLimitStart()
  _setLimitStart()
  _getLimitCount()
  _setLimitCount()
  _getQuery()
  _getCountQueries()
  _getQueries()
  _getHTMLNavigation()
  _fillQueries()
  _adaptQueriesToDriver()


Classe: BD_objectListData  - X-Ref

BD_objectListData is a base class for objects lists data database abstraction implementations, and must be
inherited by all such.

BD_objectListData()   X-Ref
Basic constructor for all object list data implementations.
This parent constructor MUST be called when instanciating
any subclass.

return: void

_getComputed()   X-Ref
Get the computed flag state

return: boolean flag value

_setComputed($_computed)   X-Ref
set the computed flag state

param: $_computed boolean flag value

_getCurrentQuery()   X-Ref
Get the current SQL query for used for data list fetching
DEBUG USE!!

return: String

_setCurrentQuery($_currentQuery)   X-Ref
set the current query
DEBUG USE!!

param: $_currentQuery String

_getQueryIsLimited()   X-Ref
Get the queryIsLimited flag state

return: boolean flag value

_setQueryIsLimited($_queryIsLimited)   X-Ref
set the queryIsLimited flag state

param: $_queryIsLimited boolean flag value

_getLimitStart()   X-Ref
Get the limitStart value

return: int limitStart value

_setLimitStart($_limitStart)   X-Ref
set the limitStart value

param: $_limitStart int value

_getLimitCount()   X-Ref
Get the limitCount value

return: int limitCount value

_setLimitCount($_limitCount)   X-Ref
set the limitCount value

param: $_limitCount int value

_getQuery($queryType, $countQuery = false, &$params)   X-Ref
returns the SQL query identified by the $queryType value.

param: $queryType int representing the desired query type (refer to inc_listdata_query_types_contants.php)
param: $countQuery boolean : if set to true, the returned query is a count result query for the specified query type.
return: String representing the SQL request compliant with the driver implementation

_getCountQueries()   X-Ref
This method returns the _queriesCount array
This method is "protected"

return: array   Count list elements queries

_getQueries()   X-Ref
This method returns the _queries array

return: array   list elements queries

_getHTMLNavigation($queryType, $params, $colspan)   X-Ref
returns the HTML navigation for the vaious object data lists implementations
This method should <b>NOT<b> be overloaded, otherwise extra-care is required
while overloading this method.

param: $queryType int representing the desired query type (refer to inc_listdata_query_types_contants.php)
param: $params array containing parameters for a given query type
param: $countQuery boolean : if set to true, the returned query is a count result query for the specified query type.
return: String reprensenting the generated HTML list navigation

_fillQueries()   X-Ref
This methods fill the query associative arrays with SQL 92 compliant
queries. This method is abstract as it is dependent upon the data
types to list (articles, breves, authors, etc.)


_adaptQueriesToDriver()   X-Ref
This method must be redefines in derived class if the driver requires
the use of database specific querying (non SQL 92 compliant queries)
this method is "protected"




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