PHP Class Newscoop\Entity\Comment\Preference\Article

Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$enabled integer
$id integer
$language Newscoop\Entity\Language
$locked integer

Public Methods

Method Description
getEnabled ( ) : boolean Get the flag if the comments are enabled or not
getId ( ) : integer Get article id
getLanguage ( ) : Language Get language
getLocked ( ) : boolean Get the flag if the comments are enabled or not
setEnabled ( boolean $p_enabled ) : Article Set the flag if the comments are enabled or not
setId ( integer $p_id ) : Article Set article id
setLanguage ( Language $p_language ) : Newscoop\Entity\Article Set language
setLocked ( $p_locked ) : Article Set the flag if the comments are enabled or not

Method Details

getEnabled() public method

Get the flag if the comments are enabled or not
public getEnabled ( ) : boolean
return boolean

getId() public method

Get article id
public getId ( ) : integer
return integer

getLanguage() public method

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

getLocked() public method

Get the flag if the comments are enabled or not
public getLocked ( ) : boolean
return boolean

setEnabled() public method

Set the flag if the comments are enabled or not
public setEnabled ( boolean $p_enabled ) : Article
$p_enabled boolean
return Article

setId() public method

Set article id
public setId ( integer $p_id ) : Article
$p_id integer
return Article

setLanguage() public method

Set language
public setLanguage ( Language $p_language ) : Newscoop\Entity\Article
$p_language Newscoop\Entity\Language
return Newscoop\Entity\Article

setLocked() public method

Set the flag if the comments are enabled or not
public setLocked ( $p_locked ) : Article
return Article

Property Details

$enabled protected property

protected int $enabled
return integer

$id protected property

protected int $id
return integer

$language protected property

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

$locked protected property

protected int $locked
return integer