PHP 클래스 MetaArticle

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

공개 프로퍼티들

프로퍼티 타입 설명
$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