PHP Class MetaArticle

Inheritance: extends MetaDbObject
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Свойство Type Description
$slideshows array

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
getContentCache ( $p_property )
setContentCache ( $p_property, $p_value )

Method Details

__construct() public méthode

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

__get() final public méthode

fn __construct
final public __get ( $p_property )

current_subtitle_no() public méthode

public current_subtitle_no ( $p_fieldName )

getAuthor() protected méthode

protected getAuthor ( )

getAuthors() protected méthode

protected getAuthors ( )

getCommentCount() protected méthode

protected getCommentCount ( )

getCommentCountAllLang() protected méthode

protected getCommentCountAllLang ( )

getCommentsEnabled() protected méthode

protected getCommentsEnabled ( )

getCreationHour() protected méthode

protected getCreationHour ( )

getCreationMinute() protected méthode

protected getCreationMinute ( )

getCreationMonth() protected méthode

protected getCreationMonth ( )

getCreationMonthDay() protected méthode

protected getCreationMonthDay ( )

getCreationMonthName() protected méthode

protected getCreationMonthName ( )

getCreationSecond() protected méthode

protected getCreationSecond ( )

getCreationWeekDay() protected méthode

protected getCreationWeekDay ( )

getCreationWeekDayName() protected méthode

protected getCreationWeekDayName ( )

getCreationYear() protected méthode

protected getCreationYear ( )

getCreationYearDay() protected méthode

protected getCreationYearDay ( )

getCustomProperty() protected méthode

protected getCustomProperty ( $p_property )

getDatetime() protected méthode

protected getDatetime ( )

getImage() protected méthode

protected getImage ( )

getImageIndex() protected méthode

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

getIsIndexed() protected méthode

protected getIsIndexed ( )

getIsPublic() protected méthode

protected getIsPublic ( )

getIsPublished() protected méthode

protected getIsPublished ( )

getIssue() protected méthode

protected getIssue ( )

getLanguage() protected méthode

protected getLanguage ( )

getMap() protected méthode

Get Map for this article
protected getMap ( ) : Geo_Map
Résultat Geo_Map

getOnFrontPage() protected méthode

protected getOnFrontPage ( )

getOnSectionPage() protected méthode

protected getOnSectionPage ( )

getOwner() protected méthode

protected getOwner ( )

getPublication() protected méthode

protected getPublication ( )

getRatingEnabled() protected méthode

protected getRatingEnabled ( )

getReads() protected méthode

protected getReads ( )

getRecommendedCommentCount() protected méthode

getRenditions() public méthode

Get article renditions
public getRenditions ( ) : array
Résultat array

getSEOURLEnd() protected méthode

Get SEO Url
protected getSEOURLEnd ( ) : string
Résultat string

getSection() protected méthode

protected getSection ( )

getTemplate() protected méthode

protected getTemplate ( )

getTopics() protected méthode

protected getTopics ( )

getTypeTranslated() protected méthode

protected getTypeTranslated ( )

getUrl() protected méthode

protected getUrl ( )

getWebcode() protected méthode

protected getWebcode ( )

get_bloginfo() public méthode

Get related bloginfo
public get_bloginfo ( ) : Article | null
Résultat Article | null

hasAttachments() protected méthode

protected hasAttachments ( )

hasMap() protected méthode

Has Article a map?
protected hasMap ( ) : boolean
Résultat boolean

hasTopics() protected méthode

protected hasTopics ( )

has_image() public méthode

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
Résultat boolean

has_keyword() public méthode

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

has_topic() public méthode

public has_topic ( $p_topicName )

image() public méthode

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
Résultat MetaImage

isContentAccessible() protected méthode

Test if content is accessible for current user
protected isContentAccessible ( ) : boolean
Résultat boolean

languages_list() public méthode

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
Résultat array of MetaLanguage

subtitle_url_id() public méthode

fn __get
public subtitle_url_id ( $p_fieldName )

subtitles_count() public méthode

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
Résultat integer

topicsCount() protected méthode

protected topicsCount ( )

translated_to() public méthode

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
Résultat boolean

Property Details

$slideshows public_oe property

public array $slideshows
Résultat array