PHP 클래스 ArticleData

상속: extends DatabaseObject
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$m_articleTypeName
$m_columnNames
$m_dbTableName
$m_keyColumnNames

공개 메소드들

메소드 설명
ArticleData ( string $p_articleType, integer $p_articleNumber, integer $p_languageId ) An article type is a dynamic table that is created for an article to allow different publications to display their content in different ways.
TransformInternalLinks ( $p_match ) : string This function is a callback for preg_replace_callback().
TransformSubheads ( $match ) fn copyToExistingRecord
copy ( integer $p_destArticleNumber ) : void Copy the row in the database.
copyToExistingRecord ( integer $p_destArticleNumber, integer $p_destLanguageId = null ) : void Copy the row in the database.
getDisplayName ( $p_lang ) : string Gets the translation for a given language; default language is the session language. If no translation is set for that language, we return the dbTableName.
getFieldValue ( $p_property, $p_forceFetchFromDatabase = false ) constructor
getUserDefinedColumns ( $p_showAll = false, $p_skipCache = false ) : array Return an array of ArticleTypeField objects.
setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false ) fn getDisplayName
transformImageTags ( $p_match ) : string This function is a callback for preg_replace_callback().

메소드 상세

ArticleData() 공개 메소드

An article type is a dynamic table that is created for an article to allow different publications to display their content in different ways.
public ArticleData ( string $p_articleType, integer $p_articleNumber, integer $p_languageId )
$p_articleType string
$p_articleNumber integer
$p_languageId integer

TransformSubheads() 공개 정적인 메소드

fn copyToExistingRecord
public static TransformSubheads ( $match )

copy() 공개 메소드

Copy the row in the database.
public copy ( integer $p_destArticleNumber ) : void
$p_destArticleNumber integer
리턴 void

copyToExistingRecord() 공개 메소드

Copy the row in the database.
public copyToExistingRecord ( integer $p_destArticleNumber, integer $p_destLanguageId = null ) : void
$p_destArticleNumber integer
$p_destLanguageId integer
리턴 void

getDisplayName() 공개 메소드

Gets the translation for a given language; default language is the session language. If no translation is set for that language, we return the dbTableName.
public getDisplayName ( $p_lang ) : string
리턴 string

getFieldValue() 공개 메소드

constructor
public getFieldValue ( $p_property, $p_forceFetchFromDatabase = false )

getUserDefinedColumns() 공개 메소드

Return an array of ArticleTypeField objects.
public getUserDefinedColumns ( $p_showAll = false, $p_skipCache = false ) : array
리턴 array

setProperty() 공개 메소드

fn getDisplayName
public setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false )

transformImageTags() 공개 메소드

It will replace alternate text with
public transformImageTags ( $p_match ) : string
리턴 string

프로퍼티 상세

$m_articleTypeName 공개적으로 프로퍼티

public $m_articleTypeName

$m_columnNames 공개적으로 프로퍼티

public $m_columnNames

$m_dbTableName 공개적으로 프로퍼티

public $m_dbTableName

$m_keyColumnNames 공개적으로 프로퍼티

public $m_keyColumnNames