PHP 클래스 PartKeepr\CategoryBundle\Entity\AbstractCategory

상속: extends PartKeepr\CoreBundle\Entity\BaseEntity
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$expanded boolean

보호된 프로퍼티들

프로퍼티 타입 설명
$parent The parent category. This needs to be re-defined in the class with the proper relations.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

public __construct ( )

getDescription() 공개 메소드

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

getLeftValue() 공개 메소드

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

getLevel() 공개 메소드

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

getName() 공개 메소드

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

getRightValue() 공개 메소드

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

getRoot() 공개 메소드

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

setDescription() 공개 메소드

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

setLeftValue() 공개 메소드

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

setName() 공개 메소드

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

setRightValue() 공개 메소드

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

setRoot() 공개 메소드

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

프로퍼티 상세

$expanded 공개적으로 프로퍼티

public bool $expanded
리턴 boolean

$parent 보호되어 있는 프로퍼티

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