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 NavigationResource

NavigationResource

NavigationResource entity. See http://www.doctrine-project.org/jira/browse/DDC-1223 for DiscriminatorMap.

Direct known subclasses

Jity\HomepageBundle\Entity\AbstractPage, Jity\HomepageBundle\Entity\NavigationContainer

Indirect known subclasses

Jity\HomepageBundle\Entity\Article, Jity\HomepageBundle\Entity\Page
Abstract
Namespace: Jity\HomepageBundle\Entity
Author: Hermann Mayer <hermann.mayer92@gmail.com>
ORM\DiscriminatorColumn(name="type",: type="string")
ORM\DiscriminatorMap({: "abstractPage" = "AbstractPage", "page" = "Page", "article" = "Article", "container" = "NavigationContainer" })
ORM\Entity
ORM\InheritanceType("JOINED")
ORM\Table(name="navigation_resource")
Located at Jity/HomepageBundle/Entity/NavigationResource.php
Methods summary
public
# __construct( )

__construct

__construct

Initalize a new NavigationResource instance.

public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

integer
public Jity\HomepageBundle\Entity\NavigationResource
# addContainer( Jity\HomepageBundle\Entity\NavigationContainer $container )

addContainer

addContainer

Add a container to the entity.

Parameters

$container
Jity\HomepageBundle\Entity\NavigationContainer
$container Container to add

Returns

Jity\HomepageBundle\Entity\NavigationResource
public Jity\HomepageBundle\Entity\NavigationResource
# removeContainer( Jity\HomepageBundle\Entity\NavigationContainer $container )

removeContainer

removeContainer

Remove a assigned container of the entity.

Parameters

$container
Jity\HomepageBundle\Entity\NavigationContainer
$container Container to remove

Returns

Jity\HomepageBundle\Entity\NavigationResource
public Doctrine\Common\Collections\Collection
# getContainers( )

getContainers

getContainers

Get all assigned containers of the entity.

Returns

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

getType

getType

Get the current (extended) type of the abstract base page.

Returns

string
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $containers
#

ORM\ManyToMany(targetEntity="NavigationContainer",

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