PHP Класс ArticleGalleyDAO, ojs

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

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

Метод Описание
__construct ( ) Constructor.
_fromRow ( $row ) : ArticleGalley Internal function to return an ArticleGalley object from a row.
changePubId ( $galleyId, $pubIdType, $pubId )
deleteAllPubIds ( $journalId, $pubIdType )
deleteByArticleId ( $articleId ) Delete galleys (and dependent galley image entries) by article.
deleteById ( $galleyId, $articleId = null ) Delete a galley by ID.
deleteObject ( $galley ) Delete an ArticleGalley.
deletePubId ( $galleyId, $pubIdType )
getAdditionalFieldNames ( ) : array Get a list of additional fields that do not have dedicated accessors.
getByBestGalleyId ( $galleyId, $articleId ) : ArticleGalley Retrieve article galley by public galley id or, failing that, internal galley ID; public galley ID takes precedence.
getByContextId ( $journalId ) : DAOResultFactory Retrieve all galleys of a journal.
getById ( $galleyId, $submissionId = null, $contextId = null )
getBySubmissionId ( $submissionId, $contextId = null )
getExportable ( $contextId, $pubIdType = null, $title = null, $author = null, $issueId = null, $pubIdSettingName = null, $pubIdSettingValue = null, $rangeInfo = null ) : DAOResultFactory Get all published article galleys (eventually with a pubId assigned and) matching the specified settings.
getGalleyByPubId ( $pubIdType, $pubId, $articleId = null ) : ArticleGalley Retrieve a galley by ID.
getGalleysBySetting ( $settingName, $settingValue, $articleId = null, $journalId = null ) : DAOResultFactory Find galleys by querying galley settings.
getInsertId ( ) : integer Get the ID of the last inserted gallery.
getLocaleFieldNames ( ) : array Get the list of fields for which data is localized.
getNextGalleySequence ( $articleId ) : integer Get the the next sequence number for an article's galleys (i.e., current max + 1).
insertObject ( $galley ) Insert a new ArticleGalley.
newDataObject ( ) : ArticleGalley Return a new data object.
pubIdExists ( $pubIdType, $pubId, $galleyId, $journalId )
resequenceGalleys ( $articleId ) Sequentially renumber galleys for an article in their sequence order.
updateLocaleFields ( $galley ) Update the localized fields for this galley.
updateObject ( $galley ) Update an existing ArticleGalley.

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

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

Constructor.
public __construct ( )

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

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

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

public changePubId ( $galleyId, $pubIdType, $pubId )

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

public deleteAllPubIds ( $journalId, $pubIdType )

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

NOTE that this will not delete article_file entities or the respective files.
public deleteByArticleId ( $articleId )
$articleId int

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

Delete a galley by ID.
public deleteById ( $galleyId, $articleId = null )
$galleyId int Galley ID.
$articleId int Optional article ID.

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

Delete an ArticleGalley.
public deleteObject ( $galley )
$galley ArticleGalley

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

public deletePubId ( $galleyId, $pubIdType )

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

Get a list of additional fields that do not have dedicated accessors.
public getAdditionalFieldNames ( ) : array
Результат array

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

Retrieve article galley by public galley id or, failing that, internal galley ID; public galley ID takes precedence.
public getByBestGalleyId ( $galleyId, $articleId ) : ArticleGalley
$galleyId string
$articleId int
Результат ArticleGalley object

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

Retrieve all galleys of a journal.
public getByContextId ( $journalId ) : DAOResultFactory
$journalId int
Результат DAOResultFactory

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

public getById ( $galleyId, $submissionId = null, $contextId = null )

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

public getBySubmissionId ( $submissionId, $contextId = null )

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

Get all published article galleys (eventually with a pubId assigned and) matching the specified settings.
public getExportable ( $contextId, $pubIdType = null, $title = null, $author = null, $issueId = null, $pubIdSettingName = null, $pubIdSettingValue = null, $rangeInfo = null ) : DAOResultFactory
$contextId integer optional
$pubIdType string
$title string optional
$author string optional
$issueId integer optional
$pubIdSettingName string optional (e.g. medra::status or medra::registeredDoi)
$pubIdSettingValue string optional
$rangeInfo DBResultRange optional
Результат DAOResultFactory

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

Retrieve a galley by ID.
public getGalleyByPubId ( $pubIdType, $pubId, $articleId = null ) : ArticleGalley
$pubIdType string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see ).
$pubId string
$articleId int
Результат ArticleGalley

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

Find galleys by querying galley settings.
public getGalleysBySetting ( $settingName, $settingValue, $articleId = null, $journalId = null ) : DAOResultFactory
$settingName string
$settingValue mixed
$articleId int optional
$journalId int optional
Результат DAOResultFactory The factory for galleys identified by setting.

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

Get the ID of the last inserted gallery.
public getInsertId ( ) : integer
Результат integer

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

Get the list of fields for which data is localized.
public getLocaleFieldNames ( ) : array
Результат array

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

Get the the next sequence number for an article's galleys (i.e., current max + 1).
public getNextGalleySequence ( $articleId ) : integer
$articleId int
Результат integer

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

Insert a new ArticleGalley.
public insertObject ( $galley )
$galley ArticleGalley

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

Return a new data object.
public newDataObject ( ) : ArticleGalley
Результат ArticleGalley

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

public pubIdExists ( $pubIdType, $pubId, $galleyId, $journalId )

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

Sequentially renumber galleys for an article in their sequence order.
public resequenceGalleys ( $articleId )
$articleId int

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

Update the localized fields for this galley.
public updateLocaleFields ( $galley )
$galley

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

Update an existing ArticleGalley.
public updateObject ( $galley )
$galley ArticleGalley