PHP Class Newscoop\Entity\Publication

Mostra file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$commentsArticleDefaultEnabled boolean
$commentsCaptchaEnabled boolean
$commentsEnabled boolean
$commentsPublicModerated boolean
$commentsSpamBlockingEnabled boolean
$commentsSubscribersModerated boolean
$defaultAlias
$defaultAliasId integer
$forumId integer
$id integer
$issues array
$language Newscoop\Entity\Language
$metaDescription string
$metaKeywords string
$metaTitle string
$moderator_from string
$moderator_to string
$name string
$public_enabled boolean
$seo integer
$urlErrorTemplateId integer
$urlTypeId integer

Public Methods

Method Description
__construct ( )
addIssue ( Issue $issue ) : void Add issue
getCaptchaEnabled ( )
getCommentsArticleDefaultEnabled ( ) : boolean Gets the value of commentsArticleDefaultEnabled.
getCommentsCaptchaEnabled ( ) : boolean Gets the value of commentsCaptchaEnabled.
getCommentsEnabled ( ) : boolean Gets the value of commentsEnabled.
getCommentsPublicModerated ( )
getCommentsSpamBlockingEnabled ( ) : boolean Gets the value of commentsSpamBlockingEnabled.
getCommentsSubscribersModerated ( )
getDefaultAlias ( ) : Aliases Get defaultAlias
getDefaultAliasId ( ) : mixed Getter for defaultAliasId
getDefaultLanguage ( ) : Newscoop\Entity\Language Get default language of the publication
getDefaultLanguageName ( ) : string Get default language name of the publication
getId ( ) : integer Get id
getIssues ( ) : array Get issues
getLanguage ( ) : Newscoop\Entity\Language Get language
getLanguages ( ) : array Get languages
getMetaDescription ( ) : string Gets the value of metaDescription.
getMetaKeywords ( ) : string Gets the value of metaKeywords.
getMetaTitle ( ) : string Gets the value of metaTitle.
getModeratorFrom ( ) : string Get moderator from email address
getModeratorTo ( ) : string Get moderator to email address
getName ( ) : string Get name
getPublicCommentsEnabled ( ) : boolean Gets the value of public_enabled.
getPublicEnabled ( ) : boolean Gets the value of public_enabled.
getSections ( ) * Get sections
getSeo ( ) : array Get seo
getSeoChoices ( )
getUrlTypeId ( ) : integer Gets the value of urlTypeId.
setCommentsArticleDefaultEnabled ( boolean $commentsArticleDefaultEnabled ) : self Sets the value of commentsArticleDefaultEnabled.
setCommentsCaptchaEnabled ( boolean $commentsCaptchaEnabled ) : self Sets the value of commentsCaptchaEnabled.
setCommentsEnabled ( boolean $commentsEnabled ) : self Sets the value of commentsEnabled.
setCommentsPublicModerated ( $commentsPublicModerated )
setCommentsSpamBlockingEnabled ( boolean $commentsSpamBlockingEnabled ) : self Sets the value of commentsSpamBlockingEnabled.
setCommentsSubscribersModerated ( $commentsSubscribersModerated )
setDefaultAlias ( $alias )
setDefaultAliasId ( mixed $defaultAliasId ) : self Setter for defaultAliasId
setDefaultLanguage ( Language $language ) : void Set default language
setId ( integer $id ) : void Set id
setLanguage ( $language )
setMetaDescription ( string $metaDescription ) : self Sets the value of metaDescription.
setMetaKeywords ( string $metaKeywords ) : self Sets the value of metaKeywords.
setMetaTitle ( string $metaTitle ) : self Sets the value of metaTitle.
setModeratorFrom ( string $p_moderator_from ) : Publication Set moderator from email address
setModeratorTo ( string $p_moderator_to ) : Publication Set moderator to email address
setName ( $name )
setPublicCommentsEnabled ( boolean $public_enabled ) : self Sets the value of public_enabled.
setPublicEnabled ( boolean $public_enabled ) : self Sets the value of public_enabled.
setSeo ( array $seo ) : self Set seo
setSeoChoices ( $data )
setUrlTypeId ( integer $urlTypeId ) : self Sets the value of urlTypeId.

Method Details

__construct() public method

public __construct ( )

addIssue() public method

Add issue
public addIssue ( Issue $issue ) : void
$issue Issue
return void

getCaptchaEnabled() public method

public getCaptchaEnabled ( )

getCommentsArticleDefaultEnabled() public method

Gets the value of commentsArticleDefaultEnabled.

getCommentsCaptchaEnabled() public method

Gets the value of commentsCaptchaEnabled.

getCommentsEnabled() public method

Gets the value of commentsEnabled.
public getCommentsEnabled ( ) : boolean
return boolean

getCommentsPublicModerated() public method

getCommentsSpamBlockingEnabled() public method

Gets the value of commentsSpamBlockingEnabled.

getCommentsSubscribersModerated() public method

getDefaultAlias() public method

Get defaultAlias
public getDefaultAlias ( ) : Aliases
return Aliases

getDefaultAliasId() public method

Getter for defaultAliasId
public getDefaultAliasId ( ) : mixed
return mixed

getDefaultLanguage() public method

Get default language of the publication
public getDefaultLanguage ( ) : Newscoop\Entity\Language
return Newscoop\Entity\Language

getDefaultLanguageName() public method

Get default language name of the publication
public getDefaultLanguageName ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getIssues() public method

Get issues
public getIssues ( ) : array
return array

getLanguage() public method

Get language
public getLanguage ( ) : Newscoop\Entity\Language
return Newscoop\Entity\Language

getLanguages() public method

Get languages
public getLanguages ( ) : array
return array

getMetaDescription() public method

Gets the value of metaDescription.
public getMetaDescription ( ) : string
return string

getMetaKeywords() public method

Gets the value of metaKeywords.
public getMetaKeywords ( ) : string
return string

getMetaTitle() public method

Gets the value of metaTitle.
public getMetaTitle ( ) : string
return string

getModeratorFrom() public method

Get moderator from email address
public getModeratorFrom ( ) : string
return string

getModeratorTo() public method

Get moderator to email address
public getModeratorTo ( ) : string
return string

getName() public method

Get name
public getName ( ) : string
return string

getPublicCommentsEnabled() public method

Gets the value of public_enabled.

getPublicEnabled() public method

Gets the value of public_enabled.
public getPublicEnabled ( ) : boolean
return boolean

getSections() public method

* Get sections
public getSections ( )

getSeo() public method

Get seo
public getSeo ( ) : array
return array

getSeoChoices() public method

public getSeoChoices ( )

getUrlTypeId() public method

Gets the value of urlTypeId.
public getUrlTypeId ( ) : integer
return integer

setCommentsArticleDefaultEnabled() public method

Sets the value of commentsArticleDefaultEnabled.
public setCommentsArticleDefaultEnabled ( boolean $commentsArticleDefaultEnabled ) : self
$commentsArticleDefaultEnabled boolean the comments article default enabled
return self

setCommentsCaptchaEnabled() public method

Sets the value of commentsCaptchaEnabled.
public setCommentsCaptchaEnabled ( boolean $commentsCaptchaEnabled ) : self
$commentsCaptchaEnabled boolean the comments captcha enabled
return self

setCommentsEnabled() public method

Sets the value of commentsEnabled.
public setCommentsEnabled ( boolean $commentsEnabled ) : self
$commentsEnabled boolean the comments enabled
return self

setCommentsPublicModerated() public method

public setCommentsPublicModerated ( $commentsPublicModerated )

setCommentsSpamBlockingEnabled() public method

Sets the value of commentsSpamBlockingEnabled.
public setCommentsSpamBlockingEnabled ( boolean $commentsSpamBlockingEnabled ) : self
$commentsSpamBlockingEnabled boolean the comments spam blocking enabled
return self

setCommentsSubscribersModerated() public method

public setCommentsSubscribersModerated ( $commentsSubscribersModerated )

setDefaultAlias() public method

public setDefaultAlias ( $alias )

setDefaultAliasId() public method

Setter for defaultAliasId
public setDefaultAliasId ( mixed $defaultAliasId ) : self
$defaultAliasId mixed Value to set
return self

setDefaultLanguage() public method

Set default language
public setDefaultLanguage ( Language $language ) : void
$language Language
return void

setId() public method

Set id
public setId ( integer $id ) : void
$id integer
return void

setLanguage() public method

public setLanguage ( $language )

setMetaDescription() public method

Sets the value of metaDescription.
public setMetaDescription ( string $metaDescription ) : self
$metaDescription string the meta description
return self

setMetaKeywords() public method

Sets the value of metaKeywords.
public setMetaKeywords ( string $metaKeywords ) : self
$metaKeywords string the meta keywords
return self

setMetaTitle() public method

Sets the value of metaTitle.
public setMetaTitle ( string $metaTitle ) : self
$metaTitle string the meta title
return self

setModeratorFrom() public method

Set moderator from email address
public setModeratorFrom ( string $p_moderator_from ) : Publication
$p_moderator_from string
return Publication

setModeratorTo() public method

Set moderator to email address
public setModeratorTo ( string $p_moderator_to ) : Publication
$p_moderator_to string
return Publication

setName() public method

public setName ( $name )

setPublicCommentsEnabled() public method

Sets the value of public_enabled.
public setPublicCommentsEnabled ( boolean $public_enabled ) : self
$public_enabled boolean the public_enabled
return self

setPublicEnabled() public method

Sets the value of public_enabled.
public setPublicEnabled ( boolean $public_enabled ) : self
$public_enabled boolean the public enabled
return self

setSeo() public method

Set seo
public setSeo ( array $seo ) : self
$seo array
return self

setSeoChoices() public method

public setSeoChoices ( $data )

setUrlTypeId() public method

Sets the value of urlTypeId.
public setUrlTypeId ( integer $urlTypeId ) : self
$urlTypeId integer the url type id
return self

Property Details

$commentsArticleDefaultEnabled protected_oe property

protected bool $commentsArticleDefaultEnabled
return boolean

$commentsCaptchaEnabled protected_oe property

protected bool $commentsCaptchaEnabled
return boolean

$commentsEnabled protected_oe property

protected bool $commentsEnabled
return boolean

$commentsPublicModerated protected_oe property

protected bool $commentsPublicModerated
return boolean

$commentsSpamBlockingEnabled protected_oe property

protected bool $commentsSpamBlockingEnabled
return boolean

$commentsSubscribersModerated protected_oe property

protected bool $commentsSubscribersModerated
return boolean

$defaultAlias protected_oe property

protected $defaultAlias

$defaultAliasId protected_oe property

protected int $defaultAliasId
return integer

$forumId protected_oe property

protected int $forumId
return integer

$id protected_oe property

protected int $id
return integer

$issues protected_oe property

protected array $issues
return array

$language protected_oe property

protected Newscoop\Entity\Language $language
return Newscoop\Entity\Language

$metaDescription protected_oe property

protected string $metaDescription
return string

$metaKeywords protected_oe property

protected string $metaKeywords
return string

$metaTitle protected_oe property

protected string $metaTitle
return string

$moderator_from protected_oe property

protected string $moderator_from
return string

$moderator_to protected_oe property

protected string $moderator_to
return string

$name protected_oe property

protected string $name
return string

$public_enabled protected_oe property

protected bool $public_enabled
return boolean

$seo protected_oe property

protected int $seo
return integer

$urlErrorTemplateId protected_oe property

protected int $urlErrorTemplateId
return integer

$urlTypeId protected_oe property

protected int $urlTypeId
return integer