Category
class Category extends AbstractEntity
Category
Methods
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)
引数の連想配列を元にプロパティを設定します.
from AbstractEntity
array
from AbstractEntity
object
copyProperties(object $srcObject, array $excludeAttribute = array())
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
from AbstractEntity
string
__toString()
No description
integer
countBranches()
No description
calcChildrenRank(EntityManager $em, integer $rank)
No description
getParents()
No description
getPath()
No description
getNameWithLevel()
No description
getDescendants()
No description
getSelfAndDescendants()
No description
__construct()
Constructor
integer
getId()
Get id
string
getName()
Get name
integer
getLevel()
Get level
integer
getRank()
Get rank
getCreateDate()
Get create_date
getUpdateDate()
Get update_date
integer
getDelFlg()
Get del_flg
Collection
getProductCategories()
Get ProductCategories
Collection
getChildren()
Get Children
getCreator()
Get Creator
Details
in AbstractEntity at line 32
offsetExists($offset)
in AbstractEntity at line 39
offsetSet($offset, $value)
in AbstractEntity at line 43
offsetGet($offset)
in AbstractEntity at line 54
offsetUnset($offset)
in AbstractEntity at line 66
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)
引数の連想配列を元にプロパティを設定します.
DBから取り出した連想配列を, プロパティへ設定する際に使用します.
in AbstractEntity at line 99
array
toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)
プロパティの値を連想配列で返します.
DBを更新する場合などで, 連想配列の値を取得したい場合に使用します.
in AbstractEntity at line 139
object
copyProperties(object $srcObject, array $excludeAttribute = array())
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
at line 37
string
__toString()
at line 45
integer
countBranches()
at line 61
Category
calcChildrenRank(EntityManager $em, integer $rank)
at line 73
getParents()
at line 81
getPath()
at line 99
getNameWithLevel()
at line 104
getDescendants()
at line 121
getSelfAndDescendants()
at line 185
__construct()
Constructor
at line 196
integer
getId()
Get id
at line 207
Category
setName(string $name)
Set name
at line 219
string
getName()
Get name
at line 230
Category
setLevel(integer $level)
Set level
at line 242
integer
getLevel()
Get level
at line 253
Category
setRank(integer $rank)
Set rank
at line 265
integer
getRank()
Get rank
at line 288
DateTime
getCreateDate()
Get create_date
at line 311
DateTime
getUpdateDate()
Get update_date
at line 322
Category
setDelFlg(integer $delFlg)
Set del_flg
at line 334
integer
getDelFlg()
Get del_flg
at line 345
Category
addProductCategory(ProductCategory $productCategories)
Add ProductCategories
at line 357
removeProductCategory(ProductCategory $productCategories)
Remove ProductCategories
at line 367
Collection
getProductCategories()
Get ProductCategories
at line 390
removeChild(Category $children)
Remove Children
at line 400
Collection
getChildren()
Get Children
at line 423
Category
getParent()
Get Parent
at line 446
Member
getCreator()
Get Creator