Open Journal Systems
3.3.0
|
Public Member Functions | |
_fromRow ($row) | |
announcementTypeExistsByTypeId ($typeId, $assocType, $assocId) | |
deleteByAssoc ($assocType, $assocId) | |
deleteById ($typeId) | |
deleteObject ($announcementType) | |
getAnnouncementTypeAssocId ($typeId) | |
getAnnouncementTypeName ($typeId) | |
getByAssoc ($assocType, $assocId, $rangeInfo=null) | |
getById ($typeId, $assocType=null, $assocId=null) | |
getByTypeName ($typeName, $assocType, $assocId) | |
getInsertId () | |
getLocaleFieldNames () | |
insertObject ($announcementType) | |
newDataObject () | |
updateLocaleFields ($announcementType) | |
updateObject ($announcementType) | |
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 AnnouncementType objects.
Definition at line 20 of file AnnouncementTypeDAO.inc.php.
AnnouncementTypeDAO::_fromRow | ( | $row | ) |
Internal function to return an AnnouncementType object from a row.
$row | array |
Definition at line 158 of file AnnouncementTypeDAO.inc.php.
References DAO\getDataObjectSettings(), and newDataObject().
Referenced by getById().
AnnouncementTypeDAO::announcementTypeExistsByTypeId | ( | $typeId, | |
$assocType, | |||
$assocId | |||
) |
Check if a announcement type exists with the given type id for a assoc type/id pair.
$typeId | int |
$assocType | int ASSOC_TYPE_... |
$assocId | int |
Definition at line 98 of file AnnouncementTypeDAO.inc.php.
References DAO\retrieve().
AnnouncementTypeDAO::deleteByAssoc | ( | $assocType, | |
$assocId | |||
) |
Delete announcement types by association.
$assocType | int ASSOC_TYPE_... |
$assocId | int |
Definition at line 249 of file AnnouncementTypeDAO.inc.php.
References deleteObject(), and getByAssoc().
AnnouncementTypeDAO::deleteById | ( | $typeId | ) |
Delete an announcement type by announcement type ID. Note that all announcements with this type ID are also deleted.
$typeId | int |
Definition at line 236 of file AnnouncementTypeDAO.inc.php.
References DAORegistry\getDAO(), and DAO\update().
Referenced by deleteObject().
AnnouncementTypeDAO::deleteObject | ( | $announcementType | ) |
Delete an announcement type. Note that all announcements with this type are also deleted.
$announcementType | AnnouncementType |
Definition at line 227 of file AnnouncementTypeDAO.inc.php.
References deleteById().
Referenced by deleteByAssoc().
AnnouncementTypeDAO::getAnnouncementTypeAssocId | ( | $typeId | ) |
Retrieve announcement type Assoc ID by announcement type ID.
$typeId | int |
Definition at line 61 of file AnnouncementTypeDAO.inc.php.
References DAO\retrieve().
AnnouncementTypeDAO::getAnnouncementTypeName | ( | $typeId | ) |
Retrieve announcement type name by ID.
$typeId | int |
Definition at line 75 of file AnnouncementTypeDAO.inc.php.
References AppLocale\getLocale(), AppLocale\getPrimaryLocale(), and DAO\retrieve().
AnnouncementTypeDAO::getByAssoc | ( | $assocType, | |
$assocId, | |||
$rangeInfo = null |
|||
) |
Retrieve an array of announcement types matching a particular Assoc ID.
$assocType | int ASSOC_TYPE_... |
$assocId | int |
$rangeInfo | DBResultRange (optional) |
Definition at line 263 of file AnnouncementTypeDAO.inc.php.
References DAO\retrieveRange().
Referenced by deleteByAssoc().
AnnouncementTypeDAO::getById | ( | $typeId, | |
$assocType = null , |
|||
$assocId = null |
|||
) |
Retrieve an announcement type by announcement type ID.
$typeId | int Announcement type ID |
$assocType | int Optional assoc type |
$assocId | int Optional assoc ID |
Definition at line 37 of file AnnouncementTypeDAO.inc.php.
References _fromRow(), and DAO\retrieve().
AnnouncementTypeDAO::getByTypeName | ( | $typeName, | |
$assocType, | |||
$assocId | |||
) |
Return announcement type ID based on a type name for an assoc type/id pair.
$typeName | string |
$assocType | int ASSOC_TYPE_... |
$assocId | int |
Definition at line 132 of file AnnouncementTypeDAO.inc.php.
References DAO\retrieve().
AnnouncementTypeDAO::getInsertId | ( | ) |
Get the ID of the last inserted announcement type.
Definition at line 277 of file AnnouncementTypeDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertObject().
AnnouncementTypeDAO::getLocaleFieldNames | ( | ) |
Get the locale field names.
Reimplemented from DAO.
Definition at line 121 of file AnnouncementTypeDAO.inc.php.
AnnouncementTypeDAO::insertObject | ( | $announcementType | ) |
Insert a new AnnouncementType.
$announcementType | AnnouncementType |
Definition at line 183 of file AnnouncementTypeDAO.inc.php.
References getInsertId(), DAO\update(), and updateLocaleFields().
AnnouncementTypeDAO::newDataObject | ( | ) |
Generate a new data object.
Definition at line 26 of file AnnouncementTypeDAO.inc.php.
Referenced by _fromRow().
AnnouncementTypeDAO::updateLocaleFields | ( | $announcementType | ) |
Update the localized settings for this object
$announcementType | object |
Definition at line 172 of file AnnouncementTypeDAO.inc.php.
References DAO\updateDataObjectSettings().
Referenced by insertObject(), and updateObject().
AnnouncementTypeDAO::updateObject | ( | $announcementType | ) |
Update an existing announcement type.
$announcementType | AnnouncementType |
Definition at line 204 of file AnnouncementTypeDAO.inc.php.
References DAO\update(), and updateLocaleFields().