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 Tag

Tag

Tag entity.

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

__construct

__construct

Initalize a new Tag instance.

Parameters

$name
mixed
$name Name of the tag
public Jity\HomepageBundle\Entity\Tag
# setId( integer $id )

setId

setId

Set the id of the entity.

Parameters

$id
integer
$id Id to set

Returns

Jity\HomepageBundle\Entity\Tag
public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

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

setName

setName

Set name of the entity.

Parameters

$name
string
$name Name of the tag

Returns

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

getName

getName

Get the name of the entity.

Returns

string
public Jity\HomepageBundle\Entity\Tag
# addPage( Jity\HomepageBundle\Entity\AbstractPage $page, integer $match = null )

addPage

addPage

Add a page to the entity.

Parameters

$page
Jity\HomepageBundle\Entity\Page
$page Page to add
$match
integer
$match Percent of tag-matching

Returns

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

removePage

removePage

Remove a page assigned to the entity.

Parameters

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

Returns

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

getPages

getPages

Get all pages assigned to the entity.

Returns

Doctrine\Common\Collections\Collection
public Jity\HomepageBundle\Entity\Tag
# setContextMatch( integer $match )

setContextMatch

setContextMatch

Set name of the entity.

Parameters

$match
integer
$match Matching of the tag (not persist)

Returns

Jity\HomepageBundle\Entity\Tag
public string
# getContextMatch( )

getContextMatch

getContextMatch

Get the matching of the entity. (not persist)

Returns

string
Constants summary
integer MATCH_HIGH 100
#
integer MATCH 66
#
integer MATCH_LOW 33
#
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $name
#

ORM\Column(type="string",

length=200, unique=true)
protected mixed $abstractPageTag
#

Exclude

ORM\OneToMany(

targetEntity="AbstractPageTag", mappedBy="tag", cascade={"persist", "remove"}, orphanRemoval=true )
protected Jity\HomepageBundle\Entity\Tag::$contextMatch $contextMatch
#

Exclude

API documentation generated by ApiGen 2.8.0