Category
extends AbstractEntity
in package
Category
Tags
Table of Contents
Properties
- $googleCategoryId : int
- $googleCategoryName : int
- $id : int
- $includeInMenu : bool
- $isActive : bool
- $level : int
- $name : string
- $parentId : int
- $stockThresholdQty : int
- $upStairsExtraShippingAmount : float
Methods
- buildTree() : mixed
- buildTreeJsonCategory() : array<string|int, mixed>
- getGoogleCategoryId() : int
- getGoogleCategoryName() : int
- getId() : int
- getLevel() : int
- getName() : string
- getParentId() : int
- getStockThresholdQty() : int
- getUpStairsExtraShippingAmount() : float
- isActive() : bool
- isIncludeInMenu() : bool
- populate() : void
- Populate data into the entity
- printTree() : mixed
- setGoogleCategoryId() : void
- setGoogleCategoryName() : void
- setId() : mixed
- setIncludeInMenu() : void
- setIsActive() : void
- setLevel() : mixed
- setName() : mixed
- setParentId() : mixed
- setStockThresholdQty() : void
- setUpStairsExtraShippingAmount() : void
Properties
$googleCategoryId
private
int
$googleCategoryId
Tags
$googleCategoryName
private
int
$googleCategoryName
Tags
$id
private
int
$id
Tags
$includeInMenu
private
bool
$includeInMenu
Tags
$isActive
private
bool
$isActive
Tags
$level
private
int
$level
Tags
$name
private
string
$name
Tags
$parentId
private
int
$parentId
Tags
$stockThresholdQty
private
int
$stockThresholdQty
Tags
$upStairsExtraShippingAmount
private
float
$upStairsExtraShippingAmount
= 0
Tags
Methods
buildTree()
public
static buildTree(array<string|int, mixed> $data[, mixed $parent = 0 ]) : mixed
Parameters
- $data : array<string|int, mixed>
- $parent : mixed = 0
buildTreeJsonCategory()
public
static buildTreeJsonCategory(array<string|int, mixed> $data[, int $parent = 0 ]) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $parent : int = 0
Return values
array<string|int, mixed>getGoogleCategoryId()
public
getGoogleCategoryId() : int
Return values
intgetGoogleCategoryName()
public
getGoogleCategoryName() : int
Return values
intgetId()
public
getId() : int
Return values
intgetLevel()
public
getLevel() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetParentId()
public
getParentId() : int
Return values
intgetStockThresholdQty()
public
getStockThresholdQty() : int
Return values
intgetUpStairsExtraShippingAmount()
public
getUpStairsExtraShippingAmount() : float
Return values
floatisActive()
public
isActive() : bool
Return values
boolisIncludeInMenu()
public
isIncludeInMenu() : bool
Return values
boolpopulate()
Populate data into the entity
public
populate(array<string|int, mixed> $data, mixed $classMetaData, mixed $em, mixed $arrayAlias) : void
Parameters
- $data : array<string|int, mixed>
- $classMetaData : mixed
- $em : mixed
- $arrayAlias : mixed
printTree()
public
static printTree(mixed $tree[, mixed $r = 0 ][, mixed $p = null ][, mixed $sousCategory = null ]) : mixed
Parameters
- $tree : mixed
- $r : mixed = 0
- $p : mixed = null
- $sousCategory : mixed = null
setGoogleCategoryId()
public
setGoogleCategoryId(int $googleCategoryId) : void
Parameters
- $googleCategoryId : int
setGoogleCategoryName()
public
setGoogleCategoryName(int $googleCategoryName) : void
Parameters
- $googleCategoryName : int
setId()
public
setId(int $id) : mixed
Parameters
- $id : int
setIncludeInMenu()
public
setIncludeInMenu(bool $includeInMenu) : void
Parameters
- $includeInMenu : bool
setIsActive()
public
setIsActive(bool $isActive) : void
Parameters
- $isActive : bool
setLevel()
public
setLevel(int $level) : mixed
Parameters
- $level : int
setName()
public
setName(string $name) : mixed
Parameters
- $name : string
setParentId()
public
setParentId(int $parentId) : mixed
Parameters
- $parentId : int
setStockThresholdQty()
public
setStockThresholdQty(int|null $stockThresholdQty) : void
Parameters
- $stockThresholdQty : int|null
setUpStairsExtraShippingAmount()
public
setUpStairsExtraShippingAmount(float $upStairsExtraShippingAmount) : void
Parameters
- $upStairsExtraShippingAmount : float