PHP 클래스 JournalDAO, ojs

상속: extends DAO
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
__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