Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
_fromRow ( $row ) : Article | Internal function to return an Article object from a row. | |
changeStatus ( $articleId, $status ) | Change the status of the article | |
deleteById ( $submissionId ) | ||
flushCache ( ) | ||
getBySetting ( $settingName, $settingValue, $journalId = null, $rangeInfo = null ) : array | Find articles by querying article settings. | |
getJournalId ( $articleId ) : integer | Get the ID of the journal an article is in. | |
getLocaleFieldNames ( ) : array | Get a list of fields for which localized data is supported | |
insertObject ( $article ) | Insert a new Article. | |
newDataObject ( ) : Article | Return a new data object. | |
removeArticlesFromSection ( $sectionId ) | Removes articles from a section by section ID | |
updateObject ( $article ) | Update an existing article. | |
updateSetting ( $articleId, $name, $value, $type, $isLocalized = false ) | Add/update an article setting. |
Method | Description | |
---|---|---|
getCompletionConditions ( $completed ) | ||
getCompletionJoins ( ) | ||
getFetchColumns ( ) | ||
getFetchJoins ( ) | ||
getFetchParameters ( ) | ||
getGroupByColumns ( ) | ||
getSubEditorJoin ( ) |
public _fromRow ( $row ) : Article | ||
$row | array | |
return | Article |
public changeStatus ( $articleId, $status ) | ||
$articleId | int | |
$status | int |
public getBySetting ( $settingName, $settingValue, $journalId = null, $rangeInfo = null ) : array | ||
$settingName | string | |
$settingValue | mixed | |
$journalId | int optional | |
$rangeInfo | DBResultRange optional | |
return | array | The articles identified by setting. WARNING: This query is selectively indexed for PostgreSQL. Ensure that the settings you wish to query are specified in dbscripts/xml/indexes.xml to avoid a potentially costly query. |
public getJournalId ( $articleId ) : integer | ||
$articleId | int | |
return | integer |
public getLocaleFieldNames ( ) : array | ||
return | array |
public insertObject ( $article ) | ||
$article | Article |
public newDataObject ( ) : Article | ||
return | Article |
public removeArticlesFromSection ( $sectionId ) | ||
$sectionId | int |
public updateObject ( $article ) | ||
$article | Article |
public updateSetting ( $articleId, $name, $value, $type, $isLocalized = false ) | ||
$articleId | int | |
$name | string | |
$value | mixed | |
$type | string Data type of the setting. | |
$isLocalized | boolean |