PHP 클래스 SectionDAO, ojs

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

공개 프로퍼티들

프로퍼티 타입 설명
$cache

공개 메소드들

메소드 설명
__construct ( )
_cacheMiss ( $cache, $id )
_fromRow ( $row ) : Section Internal function to return a Section object from a row.
_getCache ( )
customSectionOrderingExists ( $issueId ) : boolean Check if an issue has custom section ordering.
deleteById ( $sectionId, $contextId = null ) Delete a section by ID.
deleteByJournalId ( $journalId ) Delete sections by journal ID NOTE: This does not delete dependent entries EXCEPT from section_editors. It is intended to be called only when deleting a journal.
deleteCustomSection ( $issueId, $sectionId ) Delete a section from the custom section order table.
deleteCustomSectionOrdering ( $issueId ) Delete the custom ordering of an issue's sections.
getAll ( $rangeInfo = null ) : DAOResultFactory Retrieve all sections.
getByAbbrev ( $sectionAbbrev, $journalId, $locale = null ) : Section Retrieve a section by abbreviation.
getByContextId ( $journalId, $rangeInfo = null ) : DAOResultFactory Retrieve all sections for a journal.
getById ( $sectionId, $journalId = null, $useCache = false ) : Section Retrieve a section by ID.
getByIssueId ( $issueId ) : array Retrieve all sections in which articles are currently published in the given issue.
getByJournalId ( $journalId, $rangeInfo = null ) : DAOResultFactory Retrieve all sections for a journal.
getByTitle ( $sectionTitle, $journalId, $locale = null ) : Section Retrieve a section by title.
getCustomSectionOrder ( $issueId, $sectionId ) : integer Get the custom section order of a section.
getEditorSections ( $journalId ) : array Retrieve an array associating all section editor IDs with arrays containing the sections they edit.
getEmptyByJournalId ( $journalId ) : array Retrieve all empty (without articles) section ids for a journal.
getInsertId ( ) : integer Get the ID of the last inserted section.
getLocaleFieldNames ( ) : array Get the list of fields for which data can be localized.
getTitles ( $journalId, $submittableOnly = false ) : array Retrieve the IDs and titles of the sections for a journal in an associative array.
insertCustomSectionOrder ( $issueId, $sectionId, $seq ) INTERNAL USE ONLY: Insert a custom section ordering
insertObject ( $section ) Insert a new section.
newDataObject ( ) Return a new data object.
resequenceCustomSectionOrders ( $issueId ) Sequentially renumber custom section orderings in their sequence order.
resequenceSections ( $journalId ) Sequentially renumber sections in their sequence order.
sectionExists ( $sectionId, $journalId ) : boolean Check if a section exists with the specified ID.
setDefaultCustomSectionOrders ( $issueId ) Import the current section orders into the specified issue as custom issue orderings.
updateCustomSectionOrder ( $issueId, $sectionId, $seq ) Update a custom section ordering
updateLocaleFields ( $section ) Update the localized fields for this table
updateObject ( $section ) Update an existing section.

메소드 상세

__construct() 공개 메소드

public __construct ( )

_cacheMiss() 공개 메소드

public _cacheMiss ( $cache, $id )

_fromRow() 공개 메소드

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

_getCache() 공개 메소드

public _getCache ( )

customSectionOrderingExists() 공개 메소드

Check if an issue has custom section ordering.
public customSectionOrderingExists ( $issueId ) : boolean
$issueId int
리턴 boolean

deleteById() 공개 메소드

Delete a section by ID.
public deleteById ( $sectionId, $contextId = null )
$sectionId int
$contextId int optional

deleteByJournalId() 공개 메소드

Delete sections by journal ID NOTE: This does not delete dependent entries EXCEPT from section_editors. It is intended to be called only when deleting a journal.
public deleteByJournalId ( $journalId )
$journalId int

deleteCustomSection() 공개 메소드

Delete a section from the custom section order table.
public deleteCustomSection ( $issueId, $sectionId )
$issueId int
$sectionId int

deleteCustomSectionOrdering() 공개 메소드

Delete the custom ordering of an issue's sections.
public deleteCustomSectionOrdering ( $issueId )
$issueId int

getAll() 공개 메소드

Retrieve all sections.
public getAll ( $rangeInfo = null ) : DAOResultFactory
리턴 DAOResultFactory containing Sections ordered by journal ID and sequence

getByAbbrev() 공개 메소드

Retrieve a section by abbreviation.
public getByAbbrev ( $sectionAbbrev, $journalId, $locale = null ) : Section
$sectionAbbrev string
$locale string optional
리턴 Section

getByContextId() 공개 메소드

Retrieve all sections for a journal.
public getByContextId ( $journalId, $rangeInfo = null ) : DAOResultFactory
$journalId int Journal ID
$rangeInfo Object
리턴 DAOResultFactory containing Sections ordered by sequence

getById() 공개 메소드

Retrieve a section by ID.
public getById ( $sectionId, $journalId = null, $useCache = false ) : Section
$sectionId int
$journalId int optional
$useCache boolean optional
리턴 Section

getByIssueId() 공개 메소드

Retrieve all sections in which articles are currently published in the given issue.
public getByIssueId ( $issueId ) : array
리턴 array

getByJournalId() 공개 메소드

Retrieve all sections for a journal.
public getByJournalId ( $journalId, $rangeInfo = null ) : DAOResultFactory
리턴 DAOResultFactory containing Sections ordered by sequence

getByTitle() 공개 메소드

Retrieve a section by title.
public getByTitle ( $sectionTitle, $journalId, $locale = null ) : Section
$sectionTitle string
리턴 Section

getCustomSectionOrder() 공개 메소드

Get the custom section order of a section.
public getCustomSectionOrder ( $issueId, $sectionId ) : integer
$issueId int
$sectionId int
리턴 integer

getEditorSections() 공개 메소드

Retrieve an array associating all section editor IDs with arrays containing the sections they edit.
public getEditorSections ( $journalId ) : array
리턴 array editorId => array(sections they edit)

getEmptyByJournalId() 공개 메소드

Retrieve all empty (without articles) section ids for a journal.
public getEmptyByJournalId ( $journalId ) : array
리턴 array

getInsertId() 공개 메소드

Get the ID of the last inserted section.
public getInsertId ( ) : integer
리턴 integer

getLocaleFieldNames() 공개 메소드

Get the list of fields for which data can be localized.
public getLocaleFieldNames ( ) : array
리턴 array

getTitles() 공개 메소드

Retrieve the IDs and titles of the sections for a journal in an associative array.
public getTitles ( $journalId, $submittableOnly = false ) : array
리턴 array

insertCustomSectionOrder() 공개 메소드

INTERNAL USE ONLY: Insert a custom section ordering
public insertCustomSectionOrder ( $issueId, $sectionId, $seq )
$issueId int
$sectionId int
$seq int

insertObject() 공개 메소드

Insert a new section.
public insertObject ( $section )
$section Section

newDataObject() 공개 메소드

Return a new data object.
public newDataObject ( )

resequenceCustomSectionOrders() 공개 메소드

Sequentially renumber custom section orderings in their sequence order.
public resequenceCustomSectionOrders ( $issueId )
$issueId int

resequenceSections() 공개 메소드

Sequentially renumber sections in their sequence order.
public resequenceSections ( $journalId )
$journalId int

sectionExists() 공개 메소드

Check if a section exists with the specified ID.
public sectionExists ( $sectionId, $journalId ) : boolean
$sectionId int
$journalId int
리턴 boolean

setDefaultCustomSectionOrders() 공개 메소드

Import the current section orders into the specified issue as custom issue orderings.
public setDefaultCustomSectionOrders ( $issueId )
$issueId int

updateCustomSectionOrder() 공개 메소드

Update a custom section ordering
public updateCustomSectionOrder ( $issueId, $sectionId, $seq )
$issueId int
$sectionId int
$seq int

updateLocaleFields() 공개 메소드

Update the localized fields for this table
public updateLocaleFields ( $section )
$section object

updateObject() 공개 메소드

Update an existing section.
public updateObject ( $section )
$section Section

프로퍼티 상세

$cache 공개적으로 프로퍼티

public $cache