PHP Класс ArticleData

Наследование: extends DatabaseObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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