PHP Class Ojs\JournalBundle\Entity\Subject

Inheritance: implements Gedmo\Translatable\Translatable, use trait Ojs\Common\Entity\GenericEntityTrait
Datei anzeigen Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$id integer
$translations

Public Methods

Method Description
__construct ( )
__toString ( ) : string
addChild ( Subject $child ) : Subject Add child
addJournal ( Journal $journal ) : Subject Add subject
addUser ( User $users ) Add users
getChildren ( ) : ArrayCollection | Subject[]
getDescription ( ) : string Get description
getDescriptionTranslations ( ) : string Get description translations
getId ( ) : integer Get id
getIndentedSubject ( )
getJournals ( ) : ArrayCollection | Journal[] Get subjects
getLft ( ) : integer Get lft
getLvl ( ) : integer Get lvl
getParent ( ) : Subject
getRgt ( ) : integer Get rgt
getRoot ( ) : mixed
getSlug ( ) : mixed
getSubject ( ) : string Get subject
getSubjectTranslations ( ) : string Get subject translations
getTotalJournalCount ( ) : integer Get totalJournalCount
getUsers ( ) : ArrayCollection Get users
hasJournals ( ) : boolean
removeChild ( Subject $child ) : Subject Remove child
removeJournal ( Journal $journal ) Remove journal
removeUser ( User $users ) Remove users
setCreated ( DateTime $created ) : Subject Set created
setDescription ( string $description ) : Subject Set description
setLft ( integer $lft ) : Subject Set lft
setLvl ( integer $lvl ) : Subject Set lvl
setParent ( Subject $parent = null ) : Subject
setRgt ( integer $rgt ) : Subject Set rgt
setRoot ( integer $root ) : Subject Set root
setSlug ( mixed $slug )
setSubject ( string $subject ) : Subject Set subject
setTotalJournalCount ( integer $totalJournalCount ) : Subject Set totalJournalCount
setUpdated ( DateTime $updated ) : Subject Set updated
translate ( null $locale = null ) : mixed | null | SubjectTranslation Translation helper method

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( ) : string
return string

addChild() public method

Add child
public addChild ( Subject $child ) : Subject
$child Subject
return Subject

addJournal() public method

Add subject
public addJournal ( Journal $journal ) : Subject
$journal Journal
return Subject

addUser() public method

Add users
public addUser ( User $users )
$users Ojs\UserBundle\Entity\User

getChildren() public method

public getChildren ( ) : ArrayCollection | Subject[]
return Doctrine\Common\Collections\ArrayCollection | Subject[]

getDescription() public method

Get description
public getDescription ( ) : string
return string

getDescriptionTranslations() public method

Get description translations

getId() public method

Get id
public getId ( ) : integer
return integer

getIndentedSubject() public method

public getIndentedSubject ( )

getJournals() public method

Get subjects
public getJournals ( ) : ArrayCollection | Journal[]
return Doctrine\Common\Collections\ArrayCollection | Journal[]

getLft() public method

Get lft
public getLft ( ) : integer
return integer

getLvl() public method

Get lvl
public getLvl ( ) : integer
return integer

getParent() public method

public getParent ( ) : Subject
return Subject

getRgt() public method

Get rgt
public getRgt ( ) : integer
return integer

getRoot() public method

public getRoot ( ) : mixed
return mixed

getSlug() public method

public getSlug ( ) : mixed
return mixed

getSubject() public method

Get subject
public getSubject ( ) : string
return string

getSubjectTranslations() public method

Get subject translations
public getSubjectTranslations ( ) : string
return string

getTotalJournalCount() public method

Get totalJournalCount
public getTotalJournalCount ( ) : integer
return integer

getUsers() public method

Get users
public getUsers ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

hasJournals() public method

public hasJournals ( ) : boolean
return boolean

removeChild() public method

Remove child
public removeChild ( Subject $child ) : Subject
$child Subject
return Subject

removeJournal() public method

Remove journal
public removeJournal ( Journal $journal )
$journal Journal

removeUser() public method

Remove users
public removeUser ( User $users )
$users Ojs\UserBundle\Entity\User

setCreated() public method

Set created
public setCreated ( DateTime $created ) : Subject
$created DateTime
return Subject

setDescription() public method

Set description
public setDescription ( string $description ) : Subject
$description string
return Subject

setLft() public method

Set lft
public setLft ( integer $lft ) : Subject
$lft integer
return Subject

setLvl() public method

Set lvl
public setLvl ( integer $lvl ) : Subject
$lvl integer
return Subject

setParent() public method

public setParent ( Subject $parent = null ) : Subject
$parent Subject
return Subject

setRgt() public method

Set rgt
public setRgt ( integer $rgt ) : Subject
$rgt integer
return Subject

setRoot() public method

Set root
public setRoot ( integer $root ) : Subject
$root integer
return Subject

setSlug() public method

public setSlug ( mixed $slug )
$slug mixed

setSubject() public method

Set subject
public setSubject ( string $subject ) : Subject
$subject string
return Subject

setTotalJournalCount() public method

Set totalJournalCount
public setTotalJournalCount ( integer $totalJournalCount ) : Subject
$totalJournalCount integer
return Subject

setUpdated() public method

Set updated
public setUpdated ( DateTime $updated ) : Subject
$updated DateTime
return Subject

translate() public method

Translation helper method
public translate ( null $locale = null ) : mixed | null | SubjectTranslation
$locale null
return mixed | null | SubjectTranslation

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations