PHP Класс JournalDAO, ojs

Наследование: extends DAO
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Constructor
_fromRow ( $row ) : Journal Internal function to return a Journal object from a row.
anyPubIdExists ( $journalId, $pubIdType, $pubId, $assocType = ASSOC_TYPE_ANY, $assocId, $forSameType = false ) : boolean Check whether the given public ID exists for any publishing object in a journal.
deleteAllPubIds ( $journalId, $pubIdType ) Delete the public IDs of all publishing objects in a journal.
deleteById ( $journalId ) Delete a journal by ID, INCLUDING ALL DEPENDENT ITEMS.
getTitles ( $enabledOnly = false ) : array Retrieve the IDs and titles of all journals in an associative array.
newDataObject ( ) : DataObject Construct a new Journal.
updateObject ( $journal ) Update an existing journal.

Защищенные методы

Метод Описание
_getPrimaryKeyColumn ( ) : string Get the name of the primary key column for this context.
_getSettingsTableName ( ) : string Get the table name for this context's settings table.
_getTableName ( ) : string Get the table name for this context.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

_fromRow() публичный Метод

Internal function to return a Journal object from a row.
public _fromRow ( $row ) : Journal
$row array
Результат Journal

_getPrimaryKeyColumn() защищенный Метод

Get the name of the primary key column for this context.
protected _getPrimaryKeyColumn ( ) : string
Результат string

_getSettingsTableName() защищенный Метод

Get the table name for this context's settings table.
protected _getSettingsTableName ( ) : string
Результат string

_getTableName() защищенный Метод

Get the table name for this context.
protected _getTableName ( ) : string
Результат string

anyPubIdExists() публичный Метод

Check whether the given public ID exists for any publishing object in a journal.
public anyPubIdExists ( $journalId, $pubIdType, $pubId, $assocType = ASSOC_TYPE_ANY, $assocId, $forSameType = false ) : boolean
$journalId int
$pubIdType string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see ).
$pubId string
$assocType int The object type of an object to be excluded from the search. Identified by one of the ASSOC_TYPE_* constants.
$assocId int The id of an object to be excluded from the search.
$forSameType boolean Whether only the same objects should be considered.
Результат boolean

deleteAllPubIds() публичный Метод

Delete the public IDs of all publishing objects in a journal.
public deleteAllPubIds ( $journalId, $pubIdType )
$journalId int
$pubIdType string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see ).

deleteById() публичный Метод

Delete a journal by ID, INCLUDING ALL DEPENDENT ITEMS.
public deleteById ( $journalId )
$journalId int

getTitles() публичный Метод

Retrieve the IDs and titles of all journals in an associative array.
public getTitles ( $enabledOnly = false ) : array
Результат array

newDataObject() публичный Метод

Construct a new Journal.
public newDataObject ( ) : DataObject
Результат DataObject

updateObject() публичный Метод

Update an existing journal.
public updateObject ( $journal )
$journal Journal