Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
CategoryDAO Class Reference
Inheritance diagram for CategoryDAO:
ControlledVocabDAO DAO

Public Member Functions

 build ()
 
 getCache ()
 
 getCacheFilename ()
 
 getCategories ()
 
 rebuildCache ()
 
- Public Member Functions inherited from ControlledVocabDAO
 _fromRow (&$row)
 
 build ($symbolic, $assocType=0, $assocId=0)
 
 ControlledVocabDAO ()
 
 deleteObject ($controlledVocab)
 
 deleteObjectById ($controlledVocabId)
 
 enumerate ($controlledVocabId, $settingName= 'name')
 
 enumerateBySymbolic ($symbolic, $assocType, $assocId, $settingName= 'name')
 
 getById ($controlledVocabId)
 
 getBySymbolic ($symbolic, $assocType, $assocId)
 
getEntryDAO ()
 
 getInsertId ()
 
 insertObject (&$controlledVocab)
 
 newDataObject ()
 
 updateObject (&$controlledVocab)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying Category objects.

See Also
Category, ControlledVocabDAO

Definition at line 21 of file CategoryDAO.inc.php.

Member Function Documentation

CategoryDAO::build ( )

Build the Category controlled vocabulary.

Returns
ControlledVocab

Definition at line 26 of file CategoryDAO.inc.php.

Referenced by rebuildCache().

CategoryDAO::getCache ( )

Get the cached set of categories, building it if necessary.

Returns
array

Definition at line 83 of file CategoryDAO.inc.php.

References getCacheFilename(), DAORegistry\getDAO(), ControlledVocabDAO\getEntryDAO(), and rebuildCache().

CategoryDAO::getCacheFilename ( )

Get the cache filename.

Returns
string

Definition at line 100 of file CategoryDAO.inc.php.

Referenced by getCache(), and rebuildCache().

CategoryDAO::getCategories ( )

Get the categories list from database.

Returns
array

Definition at line 34 of file CategoryDAO.inc.php.

References ControlledVocabDAO\enumerateBySymbolic().

CategoryDAO::rebuildCache ( )

Rebuild the cache.

Definition at line 41 of file CategoryDAO.inc.php.

References build(), getCacheFilename(), DAORegistry\getDAO(), and ControlledVocabDAO\getEntryDAO().

Referenced by getCache().


The documentation for this class was generated from the following file: