|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct () | |
| _cacheMiss ($cache, $id) | |
| & | _fromRow ($code, &$entry) |
| & | _getCache ($locale=null) |
| codeExistsInList ($code, $list) | |
| getCodeFromValue ($value, $list) | |
| & | getCodelistItems ($list, $locale=null) |
| & | getCodes ($list, $codesToExclude=array(), $codesFilter=null, $locale=null) |
| getFilename ($locale) | |
| getListName () | |
| newDataObject () | |
| setListName ($list) | |
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 () | |
| getLocaleFieldNames () | |
| 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) | |
Data Fields | |
| $_list | |
Data Fields inherited from DAO | |
| $_dataSource | |
Additional Inherited Members | |
Static Public Member Functions inherited from DAO | |
| static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Protected Member Functions inherited from DAO | |
| _getInsertId ($table='', $id='') | |
Parent class for operations involving Codelist objects.
Definition at line 20 of file ONIXCodelistItemDAO.inc.php.
| ONIXCodelistItemDAO::__construct | ( | ) |
Constructor.
Definition at line 28 of file ONIXCodelistItemDAO.inc.php.
| ONIXCodelistItemDAO::_cacheMiss | ( | $cache, | |
| $id | |||
| ) |
Definition at line 55 of file ONIXCodelistItemDAO.inc.php.
References fatalError(), Registry\get(), getFilename(), getListName(), and AppLocale\getLocale().
| & ONIXCodelistItemDAO::_fromRow | ( | $code, | |
| & | $entry | ||
| ) |
Internal function to return a Codelist object from a row.
| $row | array |
Definition at line 230 of file ONIXCodelistItemDAO.inc.php.
References HookRegistry\call(), and newDataObject().
Referenced by getCodelistItems().
| & ONIXCodelistItemDAO::_getCache | ( | $locale = null | ) |
Definition at line 32 of file ONIXCodelistItemDAO.inc.php.
References Registry\get(), getFilename(), getListName(), AppLocale\getLocale(), and CacheManager\getManager().
Referenced by getCodelistItems(), and getCodes().
| ONIXCodelistItemDAO::codeExistsInList | ( | $code, | |
| $list | |||
| ) |
Determines if a particular code value is valid for a given list.
Definition at line 207 of file ONIXCodelistItemDAO.inc.php.
References getCodes().
| ONIXCodelistItemDAO::getCodeFromValue | ( | $value, | |
| $list | |||
| ) |
Returns an ONIX code based on a unique value and List number.
Definition at line 216 of file ONIXCodelistItemDAO.inc.php.
References getCodes().
| & ONIXCodelistItemDAO::getCodelistItems | ( | $list, | |
$locale = null |
|||
| ) |
Retrieve an array of all the codelist items.
| $list | the List string for this code list (i.e., List30) |
| $locale | an optional locale to use |
Definition at line 169 of file ONIXCodelistItemDAO.inc.php.
References _fromRow(), _getCache(), and setListName().
| & ONIXCodelistItemDAO::getCodes | ( | $list, | |
$codesToExclude = array(), |
|||
$codesFilter = null, |
|||
$locale = null |
|||
| ) |
Retrieve an array of all codelist codes and values for a given list.
| $list | the List string for this code list (i.e., List30) |
| $codesToExclude | an optional list of codes to exclude from the returned list |
| $codesFilter | an optional filter to match codes against. |
| $locale | an optional locale to use |
Definition at line 187 of file ONIXCodelistItemDAO.inc.php.
References _getCache(), and setListName().
Referenced by codeExistsInList(), and getCodeFromValue().
| ONIXCodelistItemDAO::getFilename | ( | $locale | ) |
Get the filename for the ONIX codelist document. Use a localized version if available, but if not, fall back on the master locale.
| $locale | string Locale code |
Definition at line 128 of file ONIXCodelistItemDAO.inc.php.
References PKPLocale\isLocaleValid().
Referenced by _cacheMiss(), and _getCache().
| ONIXCodelistItemDAO::getListName | ( | ) |
Get the base node name particular codelist database.
Definition at line 151 of file ONIXCodelistItemDAO.inc.php.
References $_list.
Referenced by _cacheMiss(), and _getCache().
| ONIXCodelistItemDAO::newDataObject | ( | ) |
Get the name of the CodelistItem subclass.
Definition at line 159 of file ONIXCodelistItemDAO.inc.php.
Referenced by _fromRow().
| ONIXCodelistItemDAO::setListName | ( | $list | ) |
Set the name of the list we want.
| $list | string |
Definition at line 143 of file ONIXCodelistItemDAO.inc.php.
Referenced by getCodelistItems(), and getCodes().
| ONIXCodelistItemDAO::$_list |
Definition at line 23 of file ONIXCodelistItemDAO.inc.php.
Referenced by getListName().