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 Sidebar

Sidebar

Sidebar entity.

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

__construct

__construct

Initalize a new Sidebar instance.

public
# replaceOnPages( Jity\HomepageBundle\Entity\Sidebar $sidebar )

replaceOnPages

replaceOnPages

Replace this Sidebar on all Pages which use this Sidebar.

Parameters

$sidebar
Jity\HomepageBundle\Entity\Sidebar
$sidebar Sidebar to replace
public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

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

setName

setName

Set the name of the entity.

Parameters

$name
string
$name Name of the sidebar

Returns

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

getName

getName

Get the name of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Sidebar
# addSection( Jity\HomepageBundle\Entity\Section $section )

addSection

addSection

Add a section to the entity.

Parameters

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

Returns

Jity\HomepageBundle\Entity\Sidebar
public Jity\HomepageBundle\Entity\Sidebar
# removeSection( Jity\HomepageBundle\Entity\Section $section )

removeSection

removeSection

Remove a assigned section of the entity.

Parameters

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

Returns

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

getSections

getSections

Get all assigned sections of the entity.

Returns

Doctrine\Common\Collections\Collection
public Jity\HomepageBundle\Entity\Sidebar
# addPage( Jity\HomepageBundle\Entity\AbstractPage $page )

addPage

addPage

Add a page to the entity.

Parameters

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

Returns

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

removePage

removePage

Remove a assigned page of the entity.

Parameters

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

Returns

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

getPages

getPages

Get all assigned pages 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 $name
#

ORM\Column(type="string",

length=100, unique=true)
protected mixed $sidebarSection
#

ORM\OneToMany(

targetEntity="SidebarSection", mappedBy="sidebar", cascade={"persist", "remove"}, orphanRemoval=true )

ORM\OrderBy({"position"

= "ASC"})
protected mixed $pages
#

ORM\OneToMany(targetEntity="AbstractPage",

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