Open Journal Systems  2.4.8
 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

Detailed Description

Operations for retrieving and modifying Category objects.

See Also
Category, ControlledVocabDAO

Definition at line 21 of file

Member Function Documentation

CategoryDAO::build ( )

Build the Category controlled vocabulary.


Definition at line 26 of file

Referenced by rebuildCache().

CategoryDAO::getCache ( )

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


Definition at line 83 of file

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

CategoryDAO::getCacheFilename ( )

Get the cache filename.


Definition at line 100 of file

Referenced by getCache(), and rebuildCache().

CategoryDAO::getCategories ( )

Get the categories list from database.


Definition at line 34 of file

References ControlledVocabDAO\enumerateBySymbolic().

CategoryDAO::rebuildCache ( )

Rebuild the cache.

Definition at line 41 of file

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

Referenced by getCache().

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