Open Journal Systems
3.3.0
|
Public Member Functions | |
existsByPath ($path) | |
getAll ($enabledOnly=false, $rangeInfo=null) | |
getAvailable ($userId=null, $rangeInfo=null) | |
getByPath ($path) | |
getBySetting ($settingName, $settingValue, $contextId=null) | |
getLocaleFieldNames () | |
getNames ($enabledOnly=false) | |
resequence () | |
Public Member Functions inherited from SchemaDAO | |
_fromRow ($primaryRow) | |
deleteById ($objectId) | |
deleteObject ($object) | |
getById ($objectId) | |
getInsertId () | |
insertObject ($object) | |
newDataObject () | |
updateObject ($object) | |
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 SchemaDAO | |
$primaryKeyColumn | |
$primaryTableColumns = array() | |
$schemaName | |
$settingsTableName | |
$tableName | |
Data Fields inherited from DAO | |
$_dataSource | |
Protected Member Functions inherited from DAO | |
_getInsertId ($table='', $id='') | |
Operations for retrieving and modifying context objects.
Definition at line 18 of file ContextDAO.inc.php.
ContextDAO::existsByPath | ( | $path | ) |
Check if a context exists with a specified path.
$path | string the path for the context |
Definition at line 46 of file ContextDAO.inc.php.
References DAO\retrieve().
ContextDAO::getAll | ( | $enabledOnly = false , |
|
$rangeInfo = null |
|||
) |
Retrieve all contexts.
$enabledOnly | true iff only enabled contexts should be included |
$rangeInfo | Object optional |
Definition at line 79 of file ContextDAO.inc.php.
References DAO\retrieveRange().
Referenced by getNames(), and JournalDAO\getTitles().
ContextDAO::getAvailable | ( | $userId = null , |
|
$rangeInfo = null |
|||
) |
Retrieve available contexts. If user-based contexts, retrieve all contexts assigned by user group or all contexts for site admin If not user-based, retrieve all enabled contexts.
$userId | int Optional user ID to find available contexts for |
$rangeInfo | Object optional |
Definition at line 100 of file ContextDAO.inc.php.
References DAO\retrieveRange().
ContextDAO::getByPath | ( | $path | ) |
Retrieve a context by path.
$path | string |
Definition at line 61 of file ContextDAO.inc.php.
References SchemaDAO\_fromRow(), and DAO\retrieve().
ContextDAO::getBySetting | ( | $settingName, | |
$settingValue, | |||
$contextId = null |
|||
) |
Get journals by setting.
$settingName | string |
$settingValue | mixed |
$contextId | int |
Definition at line 129 of file ContextDAO.inc.php.
References DAO\retrieve().
ContextDAO::getLocaleFieldNames | ( | ) |
Get a list of localized settings.
Reimplemented from DAO.
Definition at line 37 of file ContextDAO.inc.php.
ContextDAO::getNames | ( | $enabledOnly = false | ) |
Retrieve the IDs and names of all contexts in an associative array.
$enabledOnly | true iff only enabled contexts are to be included |
Definition at line 24 of file ContextDAO.inc.php.
References getAll().
ContextDAO::resequence | ( | ) |
Sequentially renumber each context according to their sequence order.
Definition at line 148 of file ContextDAO.inc.php.
References DAO\retrieve(), and DAO\update().