PHP 클래스 MonographDAO, omp

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

공개 메소드들

메소드 설명
__construct ( ) Constructor.
_fromRow ( $row ) : Monograph Internal function to return an Monograph object from a row.
addCategory ( $monographId, $categoryId ) Associate a category with a monograph.
categoryAssociationExists ( $monographId, $categoryId ) : boolean Check if an monograph exists with the specified ID.
deleteById ( $submissionId )
getAdditionalFieldNames ( ) : array Get a list of additional fields that do not have dedicated accessors.
getByPressId ( $pressId ) : DAOResultFactory Get all monographs for a press.
getCategories ( $monographId, $pressId = null ) : DAOResultFactory Get the categories associated with a given monograph.
getLocaleFieldNames ( ) : array Get a list of fields for which localized data is supported
getUnassignedCategories ( $monographId, $pressId = null ) : DAOResultFactory Get the categories not associated with a given monograph.
getUnpublishedMonographsByPressId ( $pressId ) : DAOResultFactory Get unpublished monographs for a press.
insertObject ( $monograph ) : Monograph inserts a new monograph into submissions table
newDataObject ( ) : Monograph Get a new data object representing the monograph.
removeCategories ( $monographId ) Unassociate all categories.
removeCategory ( $monographId, $categoryId ) Unassociate a category with a monograph.
removeMonographsFromSeries ( $seriesId ) Remove all monographs from an series.
updateObject ( $monograph ) updates a monograph

보호된 메소드들

메소드 설명
getCompletionConditions ( $completed )
getFetchColumns ( )
getFetchJoins ( )
getFetchParameters ( )
getGroupByColumns ( )
getSubEditorJoin ( )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

_fromRow() 공개 메소드

Internal function to return an Monograph object from a row.
public _fromRow ( $row ) : Monograph
$row array
리턴 Monograph

addCategory() 공개 메소드

Associate a category with a monograph.
public addCategory ( $monographId, $categoryId )
$monographId int
$categoryId int

categoryAssociationExists() 공개 메소드

Check if an monograph exists with the specified ID.
public categoryAssociationExists ( $monographId, $categoryId ) : boolean
$monographId int
리턴 boolean

deleteById() 공개 메소드

public deleteById ( $submissionId )

getAdditionalFieldNames() 공개 메소드

Get a list of additional fields that do not have dedicated accessors.
public getAdditionalFieldNames ( ) : array
리턴 array

getByPressId() 공개 메소드

Get all monographs for a press.
public getByPressId ( $pressId ) : DAOResultFactory
$pressId int
리턴 DAOResultFactory containing matching Monographs

getCategories() 공개 메소드

Get the categories associated with a given monograph.
public getCategories ( $monographId, $pressId = null ) : DAOResultFactory
$monographId int The monograph id.
$pressId int (optional) The monograph press id.
리턴 DAOResultFactory

getCompletionConditions() 보호된 메소드

protected getCompletionConditions ( $completed )

getFetchColumns() 보호된 메소드

protected getFetchColumns ( )

getFetchJoins() 보호된 메소드

protected getFetchJoins ( )

getFetchParameters() 보호된 메소드

protected getFetchParameters ( )

getGroupByColumns() 보호된 메소드

protected getGroupByColumns ( )

getLocaleFieldNames() 공개 메소드

Get a list of fields for which localized data is supported
public getLocaleFieldNames ( ) : array
리턴 array

getSubEditorJoin() 보호된 메소드

protected getSubEditorJoin ( )

getUnassignedCategories() 공개 메소드

Get the categories not associated with a given monograph.
public getUnassignedCategories ( $monographId, $pressId = null ) : DAOResultFactory
$monographId int
리턴 DAOResultFactory

getUnpublishedMonographsByPressId() 공개 메소드

Get unpublished monographs for a press.
public getUnpublishedMonographsByPressId ( $pressId ) : DAOResultFactory
$pressId int
리턴 DAOResultFactory containing matching Monographs

insertObject() 공개 메소드

inserts a new monograph into submissions table
public insertObject ( $monograph ) : Monograph
리턴 Monograph Id int

newDataObject() 공개 메소드

Get a new data object representing the monograph.
public newDataObject ( ) : Monograph
리턴 Monograph

removeCategories() 공개 메소드

Unassociate all categories.
public removeCategories ( $monographId )
$monographId int

removeCategory() 공개 메소드

Unassociate a category with a monograph.
public removeCategory ( $monographId, $categoryId )
$monographId int
$categoryId int

removeMonographsFromSeries() 공개 메소드

Remove all monographs from an series.
public removeMonographsFromSeries ( $seriesId )
$seriesId int

updateObject() 공개 메소드

updates a monograph
public updateObject ( $monograph )