Logidav Docs

Category extends AbstractEntity
in package

Category

Tags
ORM\Table

(name="mz_category")

ORM\Entity

(repositoryClass="AppBundle\Repository\CategoryRepository")

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
ORM\Column

(name="google_category_id", type="string", nullable=true)

$googleCategoryName

private int $googleCategoryName
Tags
ORM\Column

(name="google_category_name", type="string", nullable=true)

$id

private int $id
Tags
ORM\Column

(name="id", type="integer")

ORM\Id
ORM\GeneratedValue

(strategy="NONE")

$includeInMenu

private bool $includeInMenu
Tags
ORM\Column

(name="include_in_menu", type="boolean", options={"default" = false})

$isActive

private bool $isActive
Tags
ORM\Column

(name="is_active", type="boolean", options={"default" = false})

$level

private int $level
Tags
ORM\Column

(name="level", type="integer", nullable=true)

$name

private string $name
Tags
ORM\Column

(name="name", type="string", length=255)

$parentId

private int $parentId
Tags
ORM\Column

(name="parent_id", type="integer", nullable=true)

$stockThresholdQty

private int $stockThresholdQty
Tags
ORM\Column

(name="stock_threshold_qty", type="integer", nullable=true)

$upStairsExtraShippingAmount

private float $upStairsExtraShippingAmount = 0
Tags
ORM\Column

(name="up_stairs_extra_shipping_amount", type="decimal",precision=12, scale=4, nullable=true, options={"default" = 0})

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
int

getGoogleCategoryName()

public getGoogleCategoryName() : int
Return values
int

getId()

public getId() : int
Return values
int

getLevel()

public getLevel() : int
Return values
int

getName()

public getName() : string
Return values
string

getParentId()

public getParentId() : int
Return values
int

getStockThresholdQty()

public getStockThresholdQty() : int
Return values
int

getUpStairsExtraShippingAmount()

public getUpStairsExtraShippingAmount() : float
Return values
float

isActive()

public isActive() : bool
Return values
bool

isIncludeInMenu()

public isIncludeInMenu() : bool
Return values
bool

populate()

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

        
On this page

Search results