Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • AbstractPage
  • AbstractPageTag
  • Article
  • Category
  • Comment
  • Contact
  • Group
  • NavigationContainer
  • NavigationResource
  • Page
  • Section
  • Service
  • Sidebar
  • SidebarSection
  • Tag
  • User
  • UserRepository
  • Overview
  • Namespace
  • Class
  • Tree

Class Group

Group

Group entity.

Jity\HomepageBundle\Entity\Group implements Symfony\Component\Security\Core\Role\RoleInterface, Serializable
Namespace: Jity\HomepageBundle\Entity
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: RoleInterface
ExclusionPolicy("None")
ORM\Entity
ORM\Table(name="`group`")
Located at Jity/HomepageBundle/Entity/Group.php
Methods summary
public
# __construct( )

__construct

__construct

Initalize a new Group instance.

public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

integer
public Jity\HomepageBundle\Entity\Group
# setName( string $name )

setName

setName

Set the name of the entity.

Parameters

$name
string
$name Name of the group

Returns

Jity\HomepageBundle\Entity\Group
public string
# getName( )

getName

getName

Get the name of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Group
# setRole( string $role )

setRole

setRole

Set the role of the entity.

Parameters

$role
string
$role Role of the group

Returns

Jity\HomepageBundle\Entity\Group
public string
# getRole( )

getRole

getRole

Get the role of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Group
# addUser( Jity\HomepageBundle\Entity\User $user )

addUser

addUser

Add a user to the entity.

Parameters

$user
Jity\HomepageBundle\Entity\User
$user User to add

Returns

Jity\HomepageBundle\Entity\Group
public Doctrine\Common\Collections\Collection
# getUsers( )

getUsers

getUsers

Get all assigned users of the entity.

Returns

Doctrine\Common\Collections\Collection
public string
# serialize( )

serialize

serialize

Serializes the content of the current User object.

Returns

string

Implementation of

Serializable::serialize()
public
# unserialize( string $serialized )

unserialize

unserialize

Unserializes the given string in the current User object.

Parameters

$serialized
string
$serialized Serialized object

Implementation of

Serializable::unserialize()
public Jity\HomepageBundle\Entity\Group
# removeUser( Jity\HomepageBundle\Entity\User $user )

removeUser

removeUser

Remove a assigned user of the entity.

Parameters

$user
Jity\HomepageBundle\Entity\User
$user User to remove

Returns

Jity\HomepageBundle\Entity\Group
public Jity\HomepageBundle\Entity\Group
# addSection( Jity\HomepageBundle\Entity\SidebarSection $section )

addSection

addSection

Add a section to the entity.

Parameters

$section
Jity\HomepageBundle\Entity\SidebarSection
$section Section to add

Returns

Jity\HomepageBundle\Entity\Group
public Jity\HomepageBundle\Entity\Group
# removeSection( Jity\HomepageBundle\Entity\SidebarSection $section )

removeSection

removeSection

Remove a assigned section of the entity.

Parameters

$section
Jity\HomepageBundle\Entity\SidebarSection
$section Section to remove

Returns

Jity\HomepageBundle\Entity\Group
public Doctrine\Common\Collections\Collection
# getSections( )

getSections

getSections

Get all assigned sections of the entity.

Returns

Doctrine\Common\Collections\Collection
public Jity\HomepageBundle\Entity\Group
# addParent( Jity\HomepageBundle\Entity\Group $parent )

addParent

addParent

Add a parent to the entity.

Parameters

$parent
Jity\HomepageBundle\Entity\Group
$parent Parent to add

Returns

Jity\HomepageBundle\Entity\Group
public Jity\HomepageBundle\Entity\Group
# removeParent( Jity\HomepageBundle\Entity\Group $parent )

removeParent

removeParent

Remove a assigned parent of the entity.

Parameters

$parent
Jity\HomepageBundle\Entity\Group
$parent Parent to remove

Returns

Jity\HomepageBundle\Entity\Group
public Doctrine\Common\Collections\Collection
# getParents( )

getParents

getParents

Get all assigned parents of the entity.

Returns

Doctrine\Common\Collections\Collection
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $parents
#

Exclude

ORM\JoinTable(name="group_hierarchy",

joinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}, inverseJoinColumns={@ORM\JoinColumn(name="parent_group_id", referencedColumnName="id")} )

ORM\ManyToMany(targetEntity="Group")

protected mixed $name
#

ORM\Column(name="name",

type="string", length=30)
protected mixed $role
#

ORM\Column(name="role",

type="string", length=100, unique=true)
protected mixed $users
#

Exclude

ORM\ManyToMany(targetEntity="User",

mappedBy="groups")
protected mixed $sections
#

Exclude

ORM\OneToMany(targetEntity="Section",

mappedBy="group")
API documentation generated by ApiGen 2.8.0