PHP Class MetaArticle

Inheritance: extends MetaDbObject
ファイルを表示 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$slideshows array

Public Methods

Method Description
__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

Protected Methods

Method Description
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 ( )

Private Methods

Method Description
getContentCache ( $p_property )
setContentCache ( $p_property, $p_value )

Method Details

__construct() public method

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

__get() final public method

fn __construct
final public __get ( $p_property )

current_subtitle_no() public method

public current_subtitle_no ( $p_fieldName )

getAuthor() protected method

protected getAuthor ( )

getAuthors() protected method

protected getAuthors ( )

getCommentCount() protected method

protected getCommentCount ( )

getCommentCountAllLang() protected method

protected getCommentCountAllLang ( )

getCommentsEnabled() protected method

protected getCommentsEnabled ( )

getCreationHour() protected method

protected getCreationHour ( )

getCreationMinute() protected method

protected getCreationMinute ( )

getCreationMonth() protected method

protected getCreationMonth ( )

getCreationMonthDay() protected method

protected getCreationMonthDay ( )

getCreationMonthName() protected method

protected getCreationMonthName ( )

getCreationSecond() protected method

protected getCreationSecond ( )

getCreationWeekDay() protected method

protected getCreationWeekDay ( )

getCreationWeekDayName() protected method

protected getCreationWeekDayName ( )

getCreationYear() protected method

protected getCreationYear ( )

getCreationYearDay() protected method

protected getCreationYearDay ( )

getCustomProperty() protected method

protected getCustomProperty ( $p_property )

getDatetime() protected method

protected getDatetime ( )

getImage() protected method

protected getImage ( )

getImageIndex() protected method

If the image doesn't belong to the article returns null.
protected getImageIndex ( ) : integer
return integer

getIsIndexed() protected method

protected getIsIndexed ( )

getIsPublic() protected method

protected getIsPublic ( )

getIsPublished() protected method

protected getIsPublished ( )

getIssue() protected method

protected getIssue ( )

getLanguage() protected method

protected getLanguage ( )

getMap() protected method

Get Map for this article
protected getMap ( ) : Geo_Map
return Geo_Map

getOnFrontPage() protected method

protected getOnFrontPage ( )

getOnSectionPage() protected method

protected getOnSectionPage ( )

getOwner() protected method

protected getOwner ( )

getPublication() protected method

protected getPublication ( )

getRatingEnabled() protected method

protected getRatingEnabled ( )

getReads() protected method

protected getReads ( )

getRecommendedCommentCount() protected method

getRenditions() public method

Get article renditions
public getRenditions ( ) : array
return array

getSEOURLEnd() protected method

Get SEO Url
protected getSEOURLEnd ( ) : string
return string

getSection() protected method

protected getSection ( )

getTemplate() protected method

protected getTemplate ( )

getTopics() protected method

protected getTopics ( )

getTypeTranslated() protected method

protected getTypeTranslated ( )

getUrl() protected method

protected getUrl ( )

getWebcode() protected method

protected getWebcode ( )

get_bloginfo() public method

Get related bloginfo
public get_bloginfo ( ) : Article | null
return Article | null

hasAttachments() protected method

protected hasAttachments ( )

hasMap() protected method

Has Article a map?
protected hasMap ( ) : boolean
return boolean

hasTopics() protected method

protected hasTopics ( )

has_image() public method

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
return boolean

has_keyword() public method

Returns true if the article keywords field had the given keyword.
public has_keyword ( string $p_keyword ) : boolean
$p_keyword string
return boolean

has_topic() public method

public has_topic ( $p_topicName )

image() public method

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
return MetaImage

isContentAccessible() protected method

Test if content is accessible for current user
protected isContentAccessible ( ) : boolean
return boolean

languages_list() public method

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
return array of MetaLanguage

subtitle_url_id() public method

fn __get
public subtitle_url_id ( $p_fieldName )

subtitles_count() public method

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
return integer

topicsCount() protected method

protected topicsCount ( )

translated_to() public method

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
return boolean

Property Details

$slideshows public_oe property

public array $slideshows
return array