|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| _fromRow ($row) | |
| deleteById ($staticPageId) | |
| deleteObject ($staticPage) | |
| getByContextId ($contextId, $rangeInfo=null) | |
| getById ($staticPageId, $contextId=null) | |
| getByPath ($contextId, $path) | |
| getInsertId () | |
| getLocaleFieldNames () | |
| insertObject ($staticPage) | |
| newDataObject () | |
| updateLocaleFields (&$staticPage) | |
| updateObject ($staticPage) | |
Public Member Functions inherited from DAO | |
| __construct ($dataSource=null, $callHooks=true) | |
| concat () | |
| convertFromDB ($value, $type) | |
| convertToDB ($value, &$type) | |
| dateFromDB ($d) | |
| datetimeFromDB ($dt) | |
| datetimeToDB ($dt) | |
| dateToDB ($d) | |
| flushCache () | |
| formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
| getAdditionalFieldNames () | |
| getAffectedRows () | |
| getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
| getDataSource () | |
| getDirectionMapping ($direction) | |
| getDriver () | |
| getType ($value) | |
| handleError ($dataSource, $sql) | |
| nullOrInt ($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 | |
Static Public Member Functions inherited from DAO | |
| static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Data Fields inherited from DAO | |
| $_dataSource | |
Protected Member Functions inherited from DAO | |
| _getInsertId ($table='', $id='') | |
Operations for retrieving and modifying StaticPages objects.
Definition at line 18 of file StaticPagesDAO.inc.php.
| StaticPagesDAO::_fromRow | ( | $row | ) |
Return a new static pages object from a given row.
Definition at line 153 of file StaticPagesDAO.inc.php.
References DAO\getDataObjectSettings(), and newDataObject().
Referenced by getById(), and getByPath().
| StaticPagesDAO::deleteById | ( | $staticPageId | ) |
Delete a static page by ID.
| $staticPageId | int |
Definition at line 122 of file StaticPagesDAO.inc.php.
References DAO\update().
Referenced by deleteObject().
| StaticPagesDAO::deleteObject | ( | $staticPage | ) |
Delete a static page object.
| $staticPage | StaticPage |
Definition at line 137 of file StaticPagesDAO.inc.php.
References deleteById().
| StaticPagesDAO::getByContextId | ( | $contextId, | |
$rangeInfo = null |
|||
| ) |
Get a set of static pages by context ID
| $contextId | int |
| $rangeInfo | Object optional |
Definition at line 49 of file StaticPagesDAO.inc.php.
References DAO\retrieveRange().
| StaticPagesDAO::getById | ( | $staticPageId, | |
$contextId = null |
|||
| ) |
Get a static page by ID
| $staticPageId | int Static page ID |
| $contextId | int Optional context ID |
Definition at line 25 of file StaticPagesDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| StaticPagesDAO::getByPath | ( | $contextId, | |
| $path | |||
| ) |
Get a static page by path.
| $contextId | int Context ID |
| $path | string Path |
Definition at line 65 of file StaticPagesDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| StaticPagesDAO::getInsertId | ( | ) |
Get the insert ID for the last inserted static page.
Definition at line 167 of file StaticPagesDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertObject().
| StaticPagesDAO::getLocaleFieldNames | ( | ) |
Get field names for which data is localized.
Reimplemented from DAO.
Definition at line 175 of file StaticPagesDAO.inc.php.
| StaticPagesDAO::insertObject | ( | $staticPage | ) |
Insert a static page.
| $staticPage | StaticPage |
Definition at line 84 of file StaticPagesDAO.inc.php.
References getInsertId(), DAO\update(), and updateLocaleFields().
| StaticPagesDAO::newDataObject | ( | ) |
Generate a new static page object.
Definition at line 145 of file StaticPagesDAO.inc.php.
Referenced by _fromRow().
| StaticPagesDAO::updateLocaleFields | ( | & | $staticPage | ) |
Update the localized data for this object
| $author | object |
Definition at line 183 of file StaticPagesDAO.inc.php.
References DAO\updateDataObjectSettings().
Referenced by insertObject(), and updateObject().
| StaticPagesDAO::updateObject | ( | $staticPage | ) |
Update the database with a static page object
| $staticPage | StaticPage |
Definition at line 103 of file StaticPagesDAO.inc.php.
References DAO\update(), and updateLocaleFields().