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 Section

Section

Section entity.

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

__construct

__construct

Initalize a new Section instance.

public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

integer
public Jity\HomepageBundle\Entity\Section
# setTitle( string $title )

setTitle

setTitle

Set the title of the entity.

Parameters

$title
string
$title Title of the section

Returns

Jity\HomepageBundle\Entity\Section
public string
# getTitle( )

getTitle

getTitle

Get the title of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Section
# setContent( string $content )

setContent

setContent

Set the content of the entity.

Parameters

$content
string
$content Content of the section

Returns

Jity\HomepageBundle\Entity\Section
public string
# getContent( )

getContent

getContent

Get the content of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Section
# setGroup( Jity\HomepageBundle\Entity\Group $group = null )

setGroup

setGroup

Set a group to the entity.

Parameters

$group
Jity\HomepageBundle\Entity\Group
$group Group to set

Returns

Jity\HomepageBundle\Entity\Section
public Jity\HomepageBundle\Entity\Group
# getGroup( )

getGroup

getGroup

Get the group assigned to the entity.

Returns

Jity\HomepageBundle\Entity\Group
public Jity\HomepageBundle\Entity\Section
# addSidebar( Jity\HomepageBundle\Entity\Sidebar $sidebar )

addSidebar

addSidebar

Add a sidebar to the entity.

Parameters

$sidebar
Jity\HomepageBundle\Entity\SidebarSection
$sidebar Sidebar to add

Returns

Jity\HomepageBundle\Entity\Section
public Jity\HomepageBundle\Entity\Section
# removeSidebar( Jity\HomepageBundle\Entity\Sidebar $sidebar )

removeSidebar

removeSidebar

Remove a assigned sidebar of the entity.

Parameters

$sidebar
Jity\HomepageBundle\Entity\SidebarSection
$sidebar Sidebar to remove

Returns

Jity\HomepageBundle\Entity\Section
public Doctrine\Common\Collections\Collection
# getSidebars( )

getSidebars

getSidebars

Get all assigned sidebars 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 $group
#

ORM\JoinColumn(name="group_id",

referencedColumnName="id")

ORM\ManyToOne(targetEntity="Group",

inversedBy="sections")
protected mixed $title
#

ORM\Column(type="string",

length=100)
protected mixed $content
#

ORM\Column(type="text")

protected mixed $sidebarSection
#

Exclude

ORM\OneToMany(

targetEntity="SidebarSection", mappedBy="section", cascade={"persist", "remove"}, orphanRemoval=true )
API documentation generated by ApiGen 2.8.0