PHP Class PartKeepr\CategoryBundle\Entity\AbstractCategory

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
Datei anzeigen Open project: partkeepr/PartKeepr Class Usage Examples

Public Properties

Property Type Description
$expanded boolean

Protected Properties

Property Type Description
$parent The parent category. This needs to be re-defined in the class with the proper relations.

Public Methods

Method Description
__construct ( )
getDescription ( ) : string Returns the description of this category.
getLeftValue ( ) : integer Returns the "left" value of the nested set.
getLevel ( ) : integer Returns the level of this category.
getName ( ) : string Returns the name of this category.
getRightValue ( ) : integer Returns the "right" value of the nested set.
getRoot ( ) : mixed Returns the root of the tree.
setDescription ( string $description ) Sets the description for this category.
setLeftValue ( $lft ) Sets the "left" value.
setName ( string $name ) Sets the name of this category.
setRightValue ( $rgt ) Sets the "right" value of the nested set.
setRoot ( $root ) Sets the root of the tree.

Method Details

__construct() public method

public __construct ( )

getDescription() public method

Returns the description of this category.
public getDescription ( ) : string
return string The description

getLeftValue() public method

Returns the "left" value of the nested set.
public getLeftValue ( ) : integer
return integer The left value (non-PHPdoc)

getLevel() public method

Returns the level of this category.
public getLevel ( ) : integer
return integer

getName() public method

Returns the name of this category.
public getName ( ) : string
return string The category name

getRightValue() public method

Returns the "right" value of the nested set.
public getRightValue ( ) : integer
return integer The right value (non-PHPdoc)

getRoot() public method

Returns the root of the tree.
public getRoot ( ) : mixed
return mixed

setDescription() public method

Sets the description for this category.
public setDescription ( string $description )
$description string The description of this category

setLeftValue() public method

Sets the "left" value.
public setLeftValue ( $lft )
$lft integer The left value (non-PHPdoc)

setName() public method

Sets the name of this category.
public setName ( string $name )
$name string The name to set

setRightValue() public method

Sets the "right" value of the nested set.
public setRightValue ( $rgt )
$rgt int The right value (non-PHPdoc)

setRoot() public method

Sets the root of the tree.
public setRoot ( $root )
$root

Property Details

$expanded public_oe property

public bool $expanded
return boolean

$parent protected_oe property

The parent category. This needs to be re-defined in the class with the proper relations.
protected $parent