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 Category

Category

Category entity.

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

__construct

__construct

Initalize a new Category instance.

public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

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

setName

setName

Set the name of the entity.

Parameters

$name
string
$name Name of the category

Returns

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

getName

getName

Get the name of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Category
# 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\Category
public Doctrine\Common\Collections\Collection
# getPages( )

getPages

getPages

Get all assigned pages of the entity.

Returns

Doctrine\Common\Collections\Collection
public
# replaceOnPages( Jity\HomepageBundle\Entity\Category $category )

replaceOnPages

replaceOnPages

Replace this Category on all Pages which use this Category.

Parameters

$category
Jity\HomepageBundle\Entity\Category
$category Category to replace
public Jity\HomepageBundle\Entity\Category
# 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\Category
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $pages
#

ORM\OneToMany(targetEntity="AbstractPage",

mappedBy="category")
protected mixed $name
#

Todo: Should be refactored to be a "Topic" metadata
extention to better classify abstract pages.

Todo: Should be refactored to be a "Topic" metadata extention to better classify abstract pages.

ORM\Column(type="string",

unique=true, length=50)
API documentation generated by ApiGen 2.8.0