PHP Class SectionDAO, ojs

Inheritance: extends PKPSectionDAO
Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Свойство Type Description
$cache

Méthodes publiques

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

Method Details

__construct() public méthode

public __construct ( )

_cacheMiss() public méthode

public _cacheMiss ( $cache, $id )

_fromRow() public méthode

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

_getCache() public méthode

public _getCache ( )

customSectionOrderingExists() public méthode

Check if an issue has custom section ordering.
public customSectionOrderingExists ( $issueId ) : boolean
$issueId int
Résultat boolean

deleteById() public méthode

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

deleteByJournalId() public méthode

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() public méthode

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

deleteCustomSectionOrdering() public méthode

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

getAll() public méthode

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

getByAbbrev() public méthode

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

getByContextId() public méthode

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

getById() public méthode

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

getByIssueId() public méthode

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

getByJournalId() public méthode

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

getByTitle() public méthode

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

getCustomSectionOrder() public méthode

Get the custom section order of a section.
public getCustomSectionOrder ( $issueId, $sectionId ) : integer
$issueId int
$sectionId int
Résultat integer

getEditorSections() public méthode

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

getEmptyByJournalId() public méthode

Retrieve all empty (without articles) section ids for a journal.
public getEmptyByJournalId ( $journalId ) : array
Résultat array

getInsertId() public méthode

Get the ID of the last inserted section.
public getInsertId ( ) : integer
Résultat integer

getLocaleFieldNames() public méthode

Get the list of fields for which data can be localized.
public getLocaleFieldNames ( ) : array
Résultat array

getTitles() public méthode

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

insertCustomSectionOrder() public méthode

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

insertObject() public méthode

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

newDataObject() public méthode

Return a new data object.
public newDataObject ( )

resequenceCustomSectionOrders() public méthode

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

resequenceSections() public méthode

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

sectionExists() public méthode

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

setDefaultCustomSectionOrders() public méthode

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

updateCustomSectionOrder() public méthode

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

updateLocaleFields() public méthode

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

updateObject() public méthode

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

Property Details

$cache public_oe property

public $cache