PHP Класс MetaArticle

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

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

Свойство Тип Описание
$slideshows array

Открытые методы

Метод Описание
__construct ( $p_languageId = null, $p_articleId = null )
__get ( $p_property ) fn __construct
current_subtitle_no ( $p_fieldName )
getRenditions ( ) : array Get article renditions
get_bloginfo ( ) : Article | null Get related bloginfo
has_image ( integer $p_imageIndex ) : boolean Returns true if the article had an attached image identified by the given article internal index.
has_keyword ( string $p_keyword ) : boolean Returns true if the article keywords field had the given keyword.
has_topic ( $p_topicName )
image ( integer $p_imageIndex ) : MetaImage Returns an image meta object corresponding to the given index of the image attachment inside the article. Returns an empty meta image object if the image did not exist.
languages_list ( boolean $p_excludeCurrent = true, array $p_order = [] ) : array Returns a list of MetaLanguage objects - list of languages in which the article was translated.
subtitle_url_id ( $p_fieldName ) fn __get
subtitles_count ( string $p_property ) : integer Returns the number of the subtitles of the given article field.
translated_to ( string $p_language ) : boolean Returns true if the article was translated in to the language identified by the given language code

Защищенные методы

Метод Описание
getAuthor ( )
getAuthors ( )
getCommentCount ( )
getCommentCountAllLang ( )
getCommentsEnabled ( )
getCreationHour ( )
getCreationMinute ( )
getCreationMonth ( )
getCreationMonthDay ( )
getCreationMonthName ( )
getCreationSecond ( )
getCreationWeekDay ( )
getCreationWeekDayName ( )
getCreationYear ( )
getCreationYearDay ( )
getCustomProperty ( $p_property )
getDatetime ( )
getImage ( )
getImageIndex ( ) : integer Returns the index of the current image inside the article.
getIsIndexed ( )
getIsPublic ( )
getIsPublished ( )
getIssue ( )
getLanguage ( )
getMap ( ) : Geo_Map Get Map for this article
getOnFrontPage ( )
getOnSectionPage ( )
getOwner ( )
getPublication ( )
getRatingEnabled ( )
getReads ( )
getRecommendedCommentCount ( )
getSEOURLEnd ( ) : string Get SEO Url
getSection ( )
getTemplate ( )
getTopics ( )
getTypeTranslated ( )
getUrl ( )
getWebcode ( )
hasAttachments ( )
hasMap ( ) : boolean Has Article a map?
hasTopics ( )
isContentAccessible ( ) : boolean Test if content is accessible for current user
topicsCount ( )

Приватные методы

Метод Описание
getContentCache ( $p_property )
setContentCache ( $p_property, $p_value )

Описание методов

__construct() публичный Метод

public __construct ( $p_languageId = null, $p_articleId = null )

__get() закрытый публичный Метод

fn __construct
final public __get ( $p_property )

current_subtitle_no() публичный Метод

public current_subtitle_no ( $p_fieldName )

getAuthor() защищенный Метод

protected getAuthor ( )

getAuthors() защищенный Метод

protected getAuthors ( )

getCommentCount() защищенный Метод

protected getCommentCount ( )

getCommentCountAllLang() защищенный Метод

protected getCommentCountAllLang ( )

getCommentsEnabled() защищенный Метод

protected getCommentsEnabled ( )

getCreationHour() защищенный Метод

protected getCreationHour ( )

getCreationMinute() защищенный Метод

protected getCreationMinute ( )

getCreationMonth() защищенный Метод

protected getCreationMonth ( )

getCreationMonthDay() защищенный Метод

protected getCreationMonthDay ( )

getCreationMonthName() защищенный Метод

protected getCreationMonthName ( )

getCreationSecond() защищенный Метод

protected getCreationSecond ( )

getCreationWeekDay() защищенный Метод

protected getCreationWeekDay ( )

getCreationWeekDayName() защищенный Метод

protected getCreationWeekDayName ( )

getCreationYear() защищенный Метод

protected getCreationYear ( )

getCreationYearDay() защищенный Метод

protected getCreationYearDay ( )

getCustomProperty() защищенный Метод

protected getCustomProperty ( $p_property )

getDatetime() защищенный Метод

protected getDatetime ( )

getImage() защищенный Метод

protected getImage ( )

getImageIndex() защищенный Метод

If the image doesn't belong to the article returns null.
protected getImageIndex ( ) : integer
Результат integer

getIsIndexed() защищенный Метод

protected getIsIndexed ( )

getIsPublic() защищенный Метод

protected getIsPublic ( )

getIsPublished() защищенный Метод

protected getIsPublished ( )

getIssue() защищенный Метод

protected getIssue ( )

getLanguage() защищенный Метод

protected getLanguage ( )

getMap() защищенный Метод

Get Map for this article
protected getMap ( ) : Geo_Map
Результат Geo_Map

getOnFrontPage() защищенный Метод

protected getOnFrontPage ( )

getOnSectionPage() защищенный Метод

protected getOnSectionPage ( )

getOwner() защищенный Метод

protected getOwner ( )

getPublication() защищенный Метод

protected getPublication ( )

getRatingEnabled() защищенный Метод

protected getRatingEnabled ( )

getReads() защищенный Метод

protected getReads ( )

getRecommendedCommentCount() защищенный Метод

getRenditions() публичный Метод

Get article renditions
public getRenditions ( ) : array
Результат array

getSEOURLEnd() защищенный Метод

Get SEO Url
protected getSEOURLEnd ( ) : string
Результат string

getSection() защищенный Метод

protected getSection ( )

getTemplate() защищенный Метод

protected getTemplate ( )

getTopics() защищенный Метод

protected getTopics ( )

getTypeTranslated() защищенный Метод

protected getTypeTranslated ( )

getUrl() защищенный Метод

protected getUrl ( )

getWebcode() защищенный Метод

protected getWebcode ( )

get_bloginfo() публичный Метод

Get related bloginfo
public get_bloginfo ( ) : Article | null
Результат Article | null

hasAttachments() защищенный Метод

protected hasAttachments ( )

hasMap() защищенный Метод

Has Article a map?
protected hasMap ( ) : boolean
Результат boolean

hasTopics() защищенный Метод

protected hasTopics ( )

has_image() публичный Метод

Returns true if the article had an attached image identified by the given article internal index.
public has_image ( integer $p_imageIndex ) : boolean
$p_imageIndex integer - the index of the image attachment in the article
Результат boolean

has_keyword() публичный Метод

Returns true if the article keywords field had the given keyword.
public has_keyword ( string $p_keyword ) : boolean
$p_keyword string
Результат boolean

has_topic() публичный Метод

public has_topic ( $p_topicName )

image() публичный Метод

Returns an image meta object corresponding to the given index of the image attachment inside the article. Returns an empty meta image object if the image did not exist.
public image ( integer $p_imageIndex ) : MetaImage
$p_imageIndex integer - the index of the image attachment in the article
Результат MetaImage

isContentAccessible() защищенный Метод

Test if content is accessible for current user
protected isContentAccessible ( ) : boolean
Результат boolean

languages_list() публичный Метод

Returns a list of MetaLanguage objects - list of languages in which the article was translated.
public languages_list ( boolean $p_excludeCurrent = true, array $p_order = [] ) : array
$p_excludeCurrent boolean
$p_order array
Результат array of MetaLanguage

subtitle_url_id() публичный Метод

fn __get
public subtitle_url_id ( $p_fieldName )

subtitles_count() публичный Метод

Returns null if the field name was invalid or it name a non body field.
public subtitles_count ( string $p_property ) : integer
$p_property string - article field name
Результат integer

topicsCount() защищенный Метод

protected topicsCount ( )

translated_to() публичный Метод

Returns true if the article was translated in to the language identified by the given language code
public translated_to ( string $p_language ) : boolean
$p_language string - language code
Результат boolean

Описание свойств

$slideshows публичное свойство

public array $slideshows
Результат array