PHP Class MonographDAO, omp

Inheritance: extends DAO
Afficher le fichier Open project: pkp/omp Class Usage Examples

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
getCompletionConditions ( $completed )
getFetchColumns ( )
getFetchJoins ( )
getFetchParameters ( )
getGroupByColumns ( )
getSubEditorJoin ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_fromRow() public méthode

Internal function to return an Monograph object from a row.
public _fromRow ( $row ) : Monograph
$row array
Résultat Monograph

addCategory() public méthode

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

categoryAssociationExists() public méthode

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

deleteById() public méthode

public deleteById ( $submissionId )

getAdditionalFieldNames() public méthode

Get a list of additional fields that do not have dedicated accessors.
public getAdditionalFieldNames ( ) : array
Résultat array

getByPressId() public méthode

Get all monographs for a press.
public getByPressId ( $pressId ) : DAOResultFactory
$pressId int
Résultat DAOResultFactory containing matching Monographs

getCategories() public méthode

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.
Résultat DAOResultFactory

getCompletionConditions() protected méthode

protected getCompletionConditions ( $completed )

getFetchColumns() protected méthode

protected getFetchColumns ( )

getFetchJoins() protected méthode

protected getFetchJoins ( )

getFetchParameters() protected méthode

protected getFetchParameters ( )

getGroupByColumns() protected méthode

protected getGroupByColumns ( )

getLocaleFieldNames() public méthode

Get a list of fields for which localized data is supported
public getLocaleFieldNames ( ) : array
Résultat array

getSubEditorJoin() protected méthode

protected getSubEditorJoin ( )

getUnassignedCategories() public méthode

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

getUnpublishedMonographsByPressId() public méthode

Get unpublished monographs for a press.
public getUnpublishedMonographsByPressId ( $pressId ) : DAOResultFactory
$pressId int
Résultat DAOResultFactory containing matching Monographs

insertObject() public méthode

inserts a new monograph into submissions table
public insertObject ( $monograph ) : Monograph
Résultat Monograph Id int

newDataObject() public méthode

Get a new data object representing the monograph.
public newDataObject ( ) : Monograph
Résultat Monograph

removeCategories() public méthode

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

removeCategory() public méthode

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

removeMonographsFromSeries() public méthode

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

updateObject() public méthode

updates a monograph
public updateObject ( $monograph )