PHP Class Newscoop\Entity\Section

Mostrar archivo Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$articleTemplate Newscoop\Entity\Template"
$articlesLink string Link to topic articles resource
$id integer
$issue Newscoop\Entity\Issue
$language Newscoop\Entity\Language
$name string
$number integer
$publication Newscoop\Entity\Publication
$shortName string
$template Newscoop\Entity\Template"

Public Methods

Method Description
__construct ( integer $number, string $name, Newscoop\Entity\Issue $issue = null )
__toString ( ) : string String representation of this object
getArticlesLink ( ) : string Get link to topic articles resource
getId ( ) : integer Getter for id
getIssue ( ) : Newscoop\Entity\Issue Get the issue assigned to this section
getIssueName ( ) : string Get name of Issue
getLanguage ( ) : Newscoop\Entity\Language Get language
getLanguageCode ( ) : string Get language code
getLanguageId ( ) : integer Get language id
getLanguageName ( ) : string Get language name
getName ( ) : string Get name
getNameAndLanguage ( ) : string Get name of section with language
getNumber ( ) : integer Get number
getPublicationName ( ) : string Get name of publication
getShortName ( ) : string Get short name
setArticleTemplate ( Template $template ) : Newscoop\Entity\Section Set article template
setArticlesLink ( string $articlesLink ) Set link to topic articles resource
setId ( integer $id ) : self Setter for id
setShortName ( string $shortName ) : void Set short name
setTemplate ( Template $template ) : Newscoop\Entity\Section Set template

Method Details

__construct() public method

public __construct ( integer $number, string $name, Newscoop\Entity\Issue $issue = null )
$number integer
$name string
$issue Newscoop\Entity\Issue

__toString() public method

String representation of this object
public __toString ( ) : string
return string

getId() public method

Getter for id
public getId ( ) : integer
return integer

getIssue() public method

Get the issue assigned to this section
public getIssue ( ) : Newscoop\Entity\Issue
return Newscoop\Entity\Issue

getIssueName() public method

Get name of Issue
public getIssueName ( ) : string
return string

getLanguage() public method

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

getLanguageCode() public method

Get language code
public getLanguageCode ( ) : string
return string

getLanguageId() public method

Get language id
public getLanguageId ( ) : integer
return integer

getLanguageName() public method

Get language name
public getLanguageName ( ) : string
return string

getName() public method

Get name
public getName ( ) : string
return string

getNameAndLanguage() public method

Get name of section with language
public getNameAndLanguage ( ) : string
return string

getNumber() public method

Get number
public getNumber ( ) : integer
return integer

getPublicationName() public method

Get name of publication
public getPublicationName ( ) : string
return string

getShortName() public method

Get short name
public getShortName ( ) : string
return string

setArticleTemplate() public method

Set article template
public setArticleTemplate ( Template $template ) : Newscoop\Entity\Section
$template Template
return Newscoop\Entity\Section

setId() public method

Setter for id
public setId ( integer $id ) : self
$id integer Value to set
return self

setShortName() public method

Set short name
public setShortName ( string $shortName ) : void
$shortName string
return void

setTemplate() public method

Set template
public setTemplate ( Template $template ) : Newscoop\Entity\Section
$template Template
return Newscoop\Entity\Section

Property Details

$articleTemplate protected_oe property

protected Newscoop\Entity\Template" $articleTemplate
return Newscoop\Entity\Template"

$id protected_oe property

protected int $id
return integer

$issue protected_oe property

protected Newscoop\Entity\Issue $issue
return Newscoop\Entity\Issue

$language protected_oe property

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

$name protected_oe property

protected string $name
return string

$number protected_oe property

protected int $number
return integer

$publication protected_oe property

protected Newscoop\Entity\Publication $publication
return Newscoop\Entity\Publication

$shortName protected_oe property

protected string $shortName
return string

$template protected_oe property

protected Newscoop\Entity\Template" $template
return Newscoop\Entity\Template"