PHP Класс IssueDAO, ojs

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

Открытые свойства

Свойство Тип Описание
$caches

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

Метод Описание
_cacheMiss ( $cache, $id ) : Issue Handle a cache miss.
_getCache ( $cacheId ) : GenericCache Get an issue cache by cache ID.
_returnIssueFromRow ( $row ) : Issue creates and returns an issue object from a row
changePubId ( $issueId, $pubIdType, $pubId )
customIssueOrderingExists ( $journalId ) : boolean Check if a journal has custom issue ordering.
deleteAllPubIds ( $journalId, $pubIdType )
deleteByJournalId ( $journalId ) Delete issues by journal id. Deletes dependent entities.
deleteCustomIssueOrdering ( $journalId ) Delete the custom ordering of a published issue.
deleteObject ( $issue ) Delete issue. Deletes associated issue galleys, cover pages, and published articles.
deletePubId ( $issueId, $pubIdType )
flushCache ( ) Flush the issue cache.
getAdditionalFieldNames ( ) : array Get a list of additional fields that do not have dedicated accessors.
getByBestId ( $issueId, $journalId = null, $useCache = false ) : Issue Retrieve Issue by "best" issue id -- public ID if it exists, falling back on the internal issue ID otherwise.
getById ( $issueId, $journalId = null, $useCache = false ) : Issue Retrieve Issue by issue id
getByPubId ( $pubIdType, $pubId, $journalId = null, $useCache = false ) : Issue Retrieve Issue by public issue id
getBySetting ( $settingName, $settingValue, $journalId = null ) : array Find issues by querying issue settings.
getCurrent ( $journalId, $useCache = false ) : Issue Retrieve current issue
getCustomIssueOrder ( $journalId, $issueId ) : integer Get the custom issue order of a journal.
getExportable ( $contextId, $pubIdType = null, $pubIdSettingName = null, $pubIdSettingValue = null, $rangeInfo = null ) : DAOResultFactory Get all published issues (eventually with a pubId assigned and) matching the specified settings.
getInsertId ( ) : integer Get the ID of the last inserted issue.
getIssueByArticleId ( $articleId, $journalId = null ) : Issue Get issue by article id
getIssues ( $journalId, $rangeInfo = null ) : ItemIterator Get all issues organized by published date
getIssuesByIdentification ( $journalId, $volume = null, $number = null, $year = null, $titles = [] ) : DAOResultFactory Retrieve Issues by identification
getLocaleFieldNames ( ) : array Get a list of fields for which localized data is supported
getNumArticles ( $issueId ) : integer Return number of articles assigned to an issue.
getPublishedIssues ( $journalId, $rangeInfo = null ) : ItemIterator Get published issues organized by published date
getPublishedIssuesByNumber ( $journalId, $volume = null, $number = null, $year = null ) : Iterator Retrieve Issue by some combination of volume, number, and year
getUnpublishedIssues ( $journalId, $rangeInfo = null ) : ItemIterator Get unpublished issues organized by published date
insertCustomIssueOrder ( $journalId, $issueId, $seq ) INTERNAL USE ONLY: Insert a custom issue ordering
insertObject ( $issue ) : Issue inserts a new issue into issues table
issueExists ( $journalId, $volume, $number, $year, $issueId ) : boolean Check if volume, number and year have already been issued
issueIdExists ( $issueId, $journalId ) : boolean Checks if issue exists
moveCustomIssueOrder ( $journalId, $issueId, $newPos ) Move a custom issue ordering up or down, resequencing as necessary.
newDataObject ( ) : Issue Construct a new data object.
pubIdExists ( $pubIdType, $pubId, $issueId, $journalId )
resequenceCustomIssueOrders ( $journalId ) Sequentially renumber custom issue orderings in their sequence order.
setDefaultCustomIssueOrders ( $journalId ) Import the current issue orders into the specified journal as custom issue orderings.
updateCurrent ( $journalId, $issue = null ) : Issue update current issue
updateLocaleFields ( &$issue ) Update the localized fields for this object.
updateObject ( $issue ) updates an issue

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

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

Handle a cache miss.
public _cacheMiss ( $cache, $id ) : Issue
$cache GenericCache
$id string
Результат Issue

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

Get an issue cache by cache ID.
public _getCache ( $cacheId ) : GenericCache
$cacheId string
Результат GenericCache

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

creates and returns an issue object from a row
public _returnIssueFromRow ( $row ) : Issue
$row array
Результат Issue object

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

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

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

Check if a journal has custom issue ordering.
public customIssueOrderingExists ( $journalId ) : boolean
$journalId int
Результат boolean

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

public deleteAllPubIds ( $journalId, $pubIdType )

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

Delete issues by journal id. Deletes dependent entities.
public deleteByJournalId ( $journalId )
$journalId int

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

Delete the custom ordering of a published issue.
public deleteCustomIssueOrdering ( $journalId )
$journalId int

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

Delete issue. Deletes associated issue galleys, cover pages, and published articles.
public deleteObject ( $issue )
$issue object issue

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

public deletePubId ( $issueId, $pubIdType )

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

Flush the issue cache.
public flushCache ( )

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

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

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

Retrieve Issue by "best" issue id -- public ID if it exists, falling back on the internal issue ID otherwise.
public getByBestId ( $issueId, $journalId = null, $useCache = false ) : Issue
$issueId string
$journalId int optional
$useCache boolean optional
Результат Issue object

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

Retrieve Issue by issue id
public getById ( $issueId, $journalId = null, $useCache = false ) : Issue
$issueId int
$journalId int optional
$useCache boolean optional
Результат Issue object

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

Retrieve Issue by public issue id
public getByPubId ( $pubIdType, $pubId, $journalId = null, $useCache = false ) : Issue
$pubIdType string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see ).
$pubId string
$journalId int optional
$useCache boolean optional
Результат Issue object

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

Find issues by querying issue settings.
public getBySetting ( $settingName, $settingValue, $journalId = null ) : array
$settingName string
$settingValue mixed
$journalId int optional
Результат array The issues identified by setting.

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

Retrieve current issue
public getCurrent ( $journalId, $useCache = false ) : Issue
$journalId int
$useCache boolean optional
Результат Issue object

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

Get the custom issue order of a journal.
public getCustomIssueOrder ( $journalId, $issueId ) : integer
$journalId int
$issueId int
Результат integer

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

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

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

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

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

Get issue by article id
public getIssueByArticleId ( $articleId, $journalId = null ) : Issue
Результат Issue object

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

Get all issues organized by published date
public getIssues ( $journalId, $rangeInfo = null ) : ItemIterator
$journalId int
$rangeInfo object DBResultRange (optional)
Результат ItemIterator

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

Retrieve Issues by identification
public getIssuesByIdentification ( $journalId, $volume = null, $number = null, $year = null, $titles = [] ) : DAOResultFactory
$journalId int
$volume int
$number string
$year int
$titles array
Результат DAOResultFactory

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

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

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

Return number of articles assigned to an issue.
public getNumArticles ( $issueId ) : integer
$issueId int
Результат integer

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

Get published issues organized by published date
public getPublishedIssues ( $journalId, $rangeInfo = null ) : ItemIterator
$journalId int
$rangeInfo object DBResultRange
Результат ItemIterator

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

Retrieve Issue by some combination of volume, number, and year
public getPublishedIssuesByNumber ( $journalId, $volume = null, $number = null, $year = null ) : Iterator
$journalId int
$volume int
$number int
$year int
Результат Iterator object

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

Get unpublished issues organized by published date
public getUnpublishedIssues ( $journalId, $rangeInfo = null ) : ItemIterator
$journalId int
$rangeInfo object DBResultRange
Результат ItemIterator

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

INTERNAL USE ONLY: Insert a custom issue ordering
public insertCustomIssueOrder ( $journalId, $issueId, $seq )
$journalId int
$issueId int
$seq int

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

inserts a new issue into issues table
public insertObject ( $issue ) : Issue
Результат Issue Id int

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

Check if volume, number and year have already been issued
public issueExists ( $journalId, $volume, $number, $year, $issueId ) : boolean
$journalId int
$volume int
$number int
$year int
$issueId int Issue ID to exclude from results
Результат boolean

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

Checks if issue exists
public issueIdExists ( $issueId, $journalId ) : boolean
$issueId int
$journalId int
Результат boolean

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

Move a custom issue ordering up or down, resequencing as necessary.
public moveCustomIssueOrder ( $journalId, $issueId, $newPos )
$journalId int
$issueId int
$newPos int The new position (0-based) of this section

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

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

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

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

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

Sequentially renumber custom issue orderings in their sequence order.
public resequenceCustomIssueOrders ( $journalId )
$journalId int

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

Import the current issue orders into the specified journal as custom issue orderings.
public setDefaultCustomIssueOrders ( $journalId )
$journalId int

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

update current issue
public updateCurrent ( $journalId, $issue = null ) : Issue
Результат Issue object

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

Update the localized fields for this object.
public updateLocaleFields ( &$issue )
$issue

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

updates an issue
public updateObject ( $issue )

Описание свойств

$caches публичное свойство

public $caches