PHP 클래스 ArticleDAO, ojs

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

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
getCompletionConditions ( $completed )
getCompletionJoins ( )
getFetchColumns ( )
getFetchJoins ( )
getFetchParameters ( )
getGroupByColumns ( )
getSubEditorJoin ( )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

_fromRow() 공개 메소드

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

changeStatus() 공개 메소드

Change the status of the article
public changeStatus ( $articleId, $status )
$articleId int
$status int

deleteById() 공개 메소드

public deleteById ( $submissionId )

flushCache() 공개 메소드

public flushCache ( )

getBySetting() 공개 메소드

Find articles by querying article settings.
public getBySetting ( $settingName, $settingValue, $journalId = null, $rangeInfo = null ) : array
$settingName string
$settingValue mixed
$journalId int optional
$rangeInfo DBResultRange optional
리턴 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.

getCompletionConditions() 보호된 메소드

protected getCompletionConditions ( $completed )

getCompletionJoins() 보호된 메소드

protected getCompletionJoins ( )

getFetchColumns() 보호된 메소드

protected getFetchColumns ( )

getFetchJoins() 보호된 메소드

protected getFetchJoins ( )

getFetchParameters() 보호된 메소드

protected getFetchParameters ( )

getGroupByColumns() 보호된 메소드

protected getGroupByColumns ( )

getJournalId() 공개 메소드

Get the ID of the journal an article is in.
public getJournalId ( $articleId ) : integer
$articleId int
리턴 integer

getLocaleFieldNames() 공개 메소드

Get a list of fields for which localized data is supported
public getLocaleFieldNames ( ) : array
리턴 array

getSubEditorJoin() 보호된 메소드

protected getSubEditorJoin ( )

insertObject() 공개 메소드

Insert a new Article.
public insertObject ( $article )
$article Article

newDataObject() 공개 메소드

Return a new data object.
public newDataObject ( ) : Article
리턴 Article

removeArticlesFromSection() 공개 메소드

Removes articles from a section by section ID
public removeArticlesFromSection ( $sectionId )
$sectionId int

updateObject() 공개 메소드

Update an existing article.
public updateObject ( $article )
$article Article

updateSetting() 공개 메소드

Add/update an article setting.
public updateSetting ( $articleId, $name, $value, $type, $isLocalized = false )
$articleId int
$name string
$value mixed
$type string Data type of the setting.
$isLocalized boolean