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 NavigationContainer

NavigationContainer

NavigationContainer entity.

Jity\HomepageBundle\Entity\NavigationResource
Extended by Jity\HomepageBundle\Entity\NavigationContainer
Namespace: Jity\HomepageBundle\Entity
Author: Hermann Mayer <hermann.mayer92@gmail.com>
ORM\Entity
ORM\Table(name="navigation_container")
Located at Jity/HomepageBundle/Entity/NavigationContainer.php
Methods summary
public
# __construct( )

__construct

__construct

Initalize a new NavigationContainer instance.

Overrides

Jity\HomepageBundle\Entity\NavigationResource::__construct()
public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

integer

Overrides

Jity\HomepageBundle\Entity\NavigationResource::getId()
public Jity\HomepageBundle\Entity\NavigationContainer
# setName( string $name )

setName

setName

Set the name of the entity.

Parameters

$name
string
$name Name to set

Returns

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

getName

getName

Get the name of the entity.

Returns

string
public Jity\HomepageBundle\Entity\NavigationContainer
# setIcon( string $icon )

setIcon

setIcon

Set the icon of the entity.

Parameters

$icon
string
$icon Icon to set

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public string
# getIcon( )

getIcon

getIcon

Get the icon of the entity.

Returns

string
public Jity\HomepageBundle\Entity\NavigationContainer
# setSubmenu( boolean $submenu )

setSubmenu

setSubmenu

Set the submenu of the entity.

Parameters

$submenu
boolean
$submenu Boolean to set

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public boolean
# getSubmenu( )

getSubmenu

getSubmenu

Get the submenu of the entity.

Returns

boolean
public Jity\HomepageBundle\Entity\NavigationContainer
# addPage( Jity\HomepageBundle\Entity\AbstractPage $page )

addPage

addPage

Add a page to the entity.

Parameters

$page
Jity\HomepageBundle\Entity\AbstractPage
$page Page to add

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public Jity\HomepageBundle\Entity\NavigationContainer
# removePage( Jity\HomepageBundle\Entity\AbstractPage $page )

removePage

removePage

Remove a assigned page of the entity.

Parameters

$page
Jity\HomepageBundle\Entity\AbstractPage
$page Page to remove

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public Doctrine\Common\Collections\Collection
# getPages( )

getPages

getPages

Get all assigned pages of the entity.

Returns

Doctrine\Common\Collections\Collection
public Jity\HomepageBundle\Entity\NavigationContainer
# addResource( Jity\HomepageBundle\Entity\NavigationResource $resource )

addResource

addResource

Add a resource to the entity.

Parameters

$resource
Jity\HomepageBundle\Entity\NavigationResource
$resource Resource to add

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public Jity\HomepageBundle\Entity\NavigationContainer
# removeResource( Jity\HomepageBundle\Entity\NavigationResource $resource )

removeResource

removeResource

Remove a assigned resource of the entity.

Parameters

$resource
Jity\HomepageBundle\Entity\NavigationResource
$resource Resource to remove

Returns

Jity\HomepageBundle\Entity\NavigationContainer
public Doctrine\Common\Collections\Collection
# getResources( )

getResources

getResources

Get resources of the entity.

Returns

Doctrine\Common\Collections\Collection
Methods inherited from Jity\HomepageBundle\Entity\NavigationResource
addContainer(), getContainers(), getType(), removeContainer()
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $name
#

ORM\Column(name="name",

type="string", unique=true, nullable=true)
protected mixed $icon
#

ORM\Column(type="string",

length=200, nullable=true)
protected mixed $submenu
#

ORM\Column(name="submenu",

type="boolean")
protected mixed $pages
#

ORM\OneToMany(

targetEntity="AbstractPage", mappedBy="navigationContainer" )
protected mixed $resources
#

ORM\JoinTable(name="navigation_container_resource")

ORM\ManyToMany(

targetEntity="NavigationResource", inversedBy="containers", cascade={"persist"} )
Properties inherited from Jity\HomepageBundle\Entity\NavigationResource
$containers
API documentation generated by ApiGen 2.8.0