PHP 클래스 Publication

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

공개 프로퍼티들

프로퍼티 타입 설명
$m_columnNames
$m_dbTableName
$m_keyColumnNames
$m_keyIsAutoIncrement

공개 메소드들

메소드 설명
GetNumPublications ( ) : integer Return the total number of publications.
GetPublications ( string $p_name = null, integer $p_aliasId = null, array $p_sqlOptions = null ) : array Return all publications as an array of Publication objects.
Publication ( integer $p_publicationId = null ) A publication represents a magazine or newspaper.
commentsArticleDefaultEnabled ( ) : boolean Return TRUE if comments will default to enabled in the article edit screen.
commentsEnabled ( ) : boolean Alias for getCommentsEnabled
commentsPublicModerated ( ) : boolean Get whether comments made by the public are moderated.
commentsSubscribersModerated ( ) : boolean Return TRUE if comments made by subscribers are moderated.
create ( array $p_values = null ) : boolean Create the publication.
delete ( ) : boolean Delete the publication and all of its aliases.
getCommentsEnabled ( ) : boolean Return TRUE if comments are enabled for this publication.
getCommentsModeratorFrom ( ) : string Get from which address moderator receives the info email.
getCommentsModeratorTo ( ) : string Get moderator email address for this publication.
getCurrency ( ) : string
getDefaultAliasId ( ) : integer
getDefaultLanguageId ( ) : integer Get the default language for this publication.
getForumId ( ) : integer Return the forum associated with this publication.
getLanguageId ( ) : integer Get the default language for this publication.
getLanguages ( integer $p_excludeLanguageId = null, array $p_order = [], $p_published = false ) : array Return all languages used in the publication as an array of Language objects.
getName ( ) : string Get the name of this publication.
getPaidTime ( ) : integer
getPublicComments ( ) : boolean Return true if comments can be posted by unknown readers.
getPublicationId ( ) : integer Get the unique ID for this publication.
getSeo ( ) : integer Return the SEO params.
getTimeUnit ( ) : string
getTimeUnitName ( integer $p_languageId = null ) : string Returns the publication subscription time unit name.
getTrialTime ( ) : integer
getUnitCost ( ) : float
getUnitCostAllLang ( ) : float
getUrlTypeId ( ) : integer Get the URL type for this publication.
isCaptchaEnabled ( ) : boolean Return TRUE if a CAPTCHA is used to block comment spam when a user is posting.
isSpamBlockingEnabled ( ) : boolean Return TRUE if comments are checked if they are SPAM before they are accepted.
publicComments ( ) : boolean Alias for getPublicComments
setCaptchaEnabled ( boolean $p_value ) : boolean Set whether a CAPTCHA should be used to block comment spam when a user is posting.
setCommentsArticleDefaultEnabled ( boolean $p_value ) : boolean Set whether comments will default to enabled in the article edit screen.
setCommentsEnabled ( boolean $p_value ) : boolean Set whether comments are enabled for this publication.
setCommentsModeratorFrom ( string $p_value ) : boolean Set from which address moderator receives the info email.
setCommentsModeratorTo ( string $p_value ) : boolean Set moderator email adddress to which info email is send.
setCommentsPublicModerated ( boolean $p_value ) : boolean Set whether public comments are moderated.
setCommentsSubscribersModerated ( boolean $p_value ) : boolean Set whether subscriber comments are moderated.
setForumId ( $p_value ) fn getSeo
setPublicComments ( $p_value ) : boolean Set a flag that controls whether an unknown user may post comments.
setSpamBlockingEnabled ( boolean $p_value ) : boolean Set whether to check comments for SPAM before posting them.
update ( array $p_columns = null, boolean $p_commit = true, boolean $p_isSql = false ) : boolean Update the specified columns in the publication.

비공개 메소드들

메소드 설명
ProcessLanguageListOrder ( array $p_order ) : array Processes an order directive for the issue translations list.

메소드 상세

GetNumPublications() 공개 정적인 메소드

Return the total number of publications.
public static GetNumPublications ( ) : integer
리턴 integer

GetPublications() 공개 정적인 메소드

Return all publications as an array of Publication objects.
public static GetPublications ( string $p_name = null, integer $p_aliasId = null, array $p_sqlOptions = null ) : array
$p_name string
$p_aliasId integer
$p_sqlOptions array
리턴 array

Publication() 공개 메소드

This class is mainly responsible for specifying publication-wide configuration parameters.
public Publication ( integer $p_publicationId = null )
$p_publicationId integer

commentsArticleDefaultEnabled() 공개 메소드

Return TRUE if comments will default to enabled in the article edit screen.

commentsEnabled() 공개 메소드

Alias for getCommentsEnabled
public commentsEnabled ( ) : boolean
리턴 boolean

commentsPublicModerated() 공개 메소드

Get whether comments made by the public are moderated.

commentsSubscribersModerated() 공개 메소드

Return TRUE if comments made by subscribers are moderated.

create() 공개 메소드

This is a wrapper around DatabaseObject::create(), but also logs a message and notifies the Parser.
public create ( array $p_values = null ) : boolean
$p_values array
리턴 boolean

delete() 공개 메소드

Delete the publication and all of its aliases.
public delete ( ) : boolean
리턴 boolean

getCommentsEnabled() 공개 메소드

Return TRUE if comments are enabled for this publication.
public getCommentsEnabled ( ) : boolean
리턴 boolean

getCommentsModeratorFrom() 공개 메소드

Get from which address moderator receives the info email.
public getCommentsModeratorFrom ( ) : string
리턴 string

getCommentsModeratorTo() 공개 메소드

Get moderator email address for this publication.
public getCommentsModeratorTo ( ) : string
리턴 string

getCurrency() 공개 메소드

public getCurrency ( ) : string
리턴 string

getDefaultAliasId() 공개 메소드

public getDefaultAliasId ( ) : integer
리턴 integer

getDefaultLanguageId() 공개 메소드

Get the default language for this publication.
public getDefaultLanguageId ( ) : integer
리턴 integer

getForumId() 공개 메소드

Return the forum associated with this publication.
public getForumId ( ) : integer
리턴 integer

getLanguageId() 공개 메소드

Get the default language for this publication.
public getLanguageId ( ) : integer
리턴 integer

getLanguages() 공개 메소드

Return all languages used in the publication as an array of Language objects.
public getLanguages ( integer $p_excludeLanguageId = null, array $p_order = [], $p_published = false ) : array
$p_excludeLanguageId integer If greater than 0, exclude the language with the given identifier from the list.
$p_order array The array of order directives in the format: array('field'=>field_name, 'dir'=>order_direction) field_name can take one of the following values: bynumber, byname, byenglish_name, bycode order_direction can take one of the following values: asc, desc
리턴 array

getName() 공개 메소드

Get the name of this publication.
public getName ( ) : string
리턴 string

getPaidTime() 공개 메소드

public getPaidTime ( ) : integer
리턴 integer

getPublicComments() 공개 메소드

Return true if comments can be posted by unknown readers.
public getPublicComments ( ) : boolean
리턴 boolean

getPublicationId() 공개 메소드

Get the unique ID for this publication.
public getPublicationId ( ) : integer
리턴 integer

getSeo() 공개 메소드

Return the SEO params.
public getSeo ( ) : integer
리턴 integer

getTimeUnit() 공개 메소드

public getTimeUnit ( ) : string
리턴 string

getTimeUnitName() 공개 메소드

Returns the publication subscription time unit name.
public getTimeUnitName ( integer $p_languageId = null ) : string
$p_languageId integer
리턴 string

getTrialTime() 공개 메소드

public getTrialTime ( ) : integer
리턴 integer

getUnitCost() 공개 메소드

public getUnitCost ( ) : float
리턴 float

getUnitCostAllLang() 공개 메소드

public getUnitCostAllLang ( ) : float
리턴 float

getUrlTypeId() 공개 메소드

This returns a key to the URLTypes table, but currently there are only two URL types: "short names" and "template path".
public getUrlTypeId ( ) : integer
리턴 integer

isCaptchaEnabled() 공개 메소드

Return TRUE if a CAPTCHA is used to block comment spam when a user is posting.
public isCaptchaEnabled ( ) : boolean
리턴 boolean

isSpamBlockingEnabled() 공개 메소드

Return TRUE if comments are checked if they are SPAM before they are accepted.
public isSpamBlockingEnabled ( ) : boolean
리턴 boolean

publicComments() 공개 메소드

Alias for getPublicComments
public publicComments ( ) : boolean
리턴 boolean

setCaptchaEnabled() 공개 메소드

Set whether a CAPTCHA should be used to block comment spam when a user is posting.
public setCaptchaEnabled ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

setCommentsArticleDefaultEnabled() 공개 메소드

Set whether comments will default to enabled in the article edit screen.
public setCommentsArticleDefaultEnabled ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

setCommentsEnabled() 공개 메소드

Set whether comments are enabled for this publication.
public setCommentsEnabled ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

setCommentsModeratorFrom() 공개 메소드

Set from which address moderator receives the info email.
public setCommentsModeratorFrom ( string $p_value ) : boolean
$p_value string
리턴 boolean

setCommentsModeratorTo() 공개 메소드

Set moderator email adddress to which info email is send.
public setCommentsModeratorTo ( string $p_value ) : boolean
$p_value string
리턴 boolean

setCommentsPublicModerated() 공개 메소드

Set whether public comments are moderated.
public setCommentsPublicModerated ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

setCommentsSubscribersModerated() 공개 메소드

Set whether subscriber comments are moderated.
public setCommentsSubscribersModerated ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

setForumId() 공개 메소드

fn getSeo
public setForumId ( $p_value )

setPublicComments() 공개 메소드

Set a flag that controls whether an unknown user may post comments.
public setPublicComments ( $p_value ) : boolean
리턴 boolean

setSpamBlockingEnabled() 공개 메소드

Set whether to check comments for SPAM before posting them.
public setSpamBlockingEnabled ( boolean $p_value ) : boolean
$p_value boolean
리턴 boolean

update() 공개 메소드

A wrapper around the DatabaseObject::update(), but this function logs a message after the update is complete and notifies the Parser about the change.
public update ( array $p_columns = null, boolean $p_commit = true, boolean $p_isSql = false ) : boolean
$p_columns array
$p_commit boolean
$p_isSql boolean
리턴 boolean

프로퍼티 상세

$m_columnNames 공개적으로 프로퍼티

public $m_columnNames

$m_dbTableName 공개적으로 프로퍼티

public $m_dbTableName

$m_keyColumnNames 공개적으로 프로퍼티

public $m_keyColumnNames

$m_keyIsAutoIncrement 공개적으로 프로퍼티

public $m_keyIsAutoIncrement