PHP Class Sulu\Bundle\SecurityBundle\Entity\Group

Inheritance: extends Sulu\Bundle\CoreBundle\Entity\ApiEntity, implements Sulu\Component\Persistence\Model\AuditableInterface
Datei anzeigen Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addChildren ( Group $children ) : Group Add children.
addRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) : Group Add roles.
addUserGroup ( UserGroup $userGroups ) : Group Add userGroups.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getChildren ( ) : Doctrine\Common\Collections\Collection Get children.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getDepth ( ) : integer Get depth.
getId ( ) : integer Get id.
getLft ( ) : integer Get lft.
getName ( ) : string Get name.
getParent ( ) : Group Get parent.
getRgt ( ) : integer Get rgt.
getRoles ( ) : Doctrine\Common\Collections\Collection Get roles.
getUserGroups ( ) : Doctrine\Common\Collections\Collection Get userGroups.
removeChildren ( Group $children ) Remove children.
removeRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) Remove roles.
removeUserGroup ( UserGroup $userGroups ) Remove userGroups.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Group Set changer.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Group Set creator.
setDepth ( integer $depth ) : Group Set depth.
setLft ( integer $lft ) : Group Set lft.
setName ( string $name ) : Group Set name.
setParent ( Group $parent = null ) : Group Set parent.
setRgt ( integer $rgt ) : Group Set rgt.

Method Details

__construct() public method

Constructor.
public __construct ( )

addChildren() public method

Add children.
public addChildren ( Group $children ) : Group
$children Group
return Group

addRole() public method

Add roles.
public addRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) : Group
$roles Sulu\Component\Security\Authentication\RoleInterface
return Group

addUserGroup() public method

Add userGroups.
public addUserGroup ( UserGroup $userGroups ) : Group
$userGroups UserGroup
return Group

getChanged() public method

Get changed.
public getChanged ( ) : DateTime
return DateTime

getChanger() public method

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
return Sulu\Component\Security\Authentication\UserInterface

getChildren() public method

Get children.
public getChildren ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getCreated() public method

Get created.
public getCreated ( ) : DateTime
return DateTime

getCreator() public method

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
return Sulu\Component\Security\Authentication\UserInterface

getDepth() public method

Get depth.
public getDepth ( ) : integer
return integer

getId() public method

Get id.
public getId ( ) : integer
return integer

getLft() public method

Get lft.
public getLft ( ) : integer
return integer

getName() public method

Get name.
public getName ( ) : string
return string

getParent() public method

Get parent.
public getParent ( ) : Group
return Group

getRgt() public method

Get rgt.
public getRgt ( ) : integer
return integer

getRoles() public method

Get roles.
public getRoles ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getUserGroups() public method

Get userGroups.
public getUserGroups ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

removeChildren() public method

Remove children.
public removeChildren ( Group $children )
$children Group

removeRole() public method

Remove roles.
public removeRole ( Sulu\Component\Security\Authentication\RoleInterface $roles )
$roles Sulu\Component\Security\Authentication\RoleInterface

removeUserGroup() public method

Remove userGroups.
public removeUserGroup ( UserGroup $userGroups )
$userGroups UserGroup

setChanger() public method

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Group
$changer Sulu\Component\Security\Authentication\UserInterface
return Group

setCreator() public method

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Group
$creator Sulu\Component\Security\Authentication\UserInterface
return Group

setDepth() public method

Set depth.
public setDepth ( integer $depth ) : Group
$depth integer
return Group

setLft() public method

Set lft.
public setLft ( integer $lft ) : Group
$lft integer
return Group

setName() public method

Set name.
public setName ( string $name ) : Group
$name string
return Group

setParent() public method

Set parent.
public setParent ( Group $parent = null ) : Group
$parent Group
return Group

setRgt() public method

Set rgt.
public setRgt ( integer $rgt ) : Group
$rgt integer
return Group