\app\common\facadeCategoryFacade

Class CategoryFacade

Summary

Methods
Properties
Constants
__callStatic()
getCategories()
findCategory()
getCategoryId()
getCategoryTree()
getTreedCategory()
getSubCategory()
getSubCateIds()
clearCache()
No public properties found
No constants found
createFacade()
getFacadeClass()
$bind
N/A
No private methods found
No private properties found
N/A

Properties

$bind

$bind : 

Type

Methods

__callStatic()

__callStatic(  $method,   $params) 

Parameters

$method
$params

getCategories()

getCategories(mixed  $force=false) : array

static 获取分类列表

Parameters

mixed $force=false

Returns

array

findCategory()

findCategory(mixed  $idorname) : array

static 查找分类

Parameters

mixed $idorname

Returns

array

getCategoryId()

getCategoryId(mixed  $idorname) : array

static 查找分类ID

Parameters

mixed $idorname

Returns

array

getCategoryTree()

getCategoryTree(mixed  $idorname) : array

static 获取当前分类所在的层级树

Parameters

mixed $idorname

Returns

array

getTreedCategory()

getTreedCategory(mixed  $force=false) : array

static 获取排序后的分类

Parameters

mixed $force=false

Returns

array

getSubCategory()

getSubCategory(mixed  $pid=0) : array

static 获取指定id的下级分类列表

Parameters

mixed $pid=0

Returns

array

getSubCateIds()

getSubCateIds(mixed  $pid, mixed  $recursive=false) : array

static (递归)获取下级分类id列表

Parameters

mixed $pid
mixed $recursive=false

Returns

array

clearCache()

clearCache() : void

static 清除缓存

createFacade()

createFacade() 

getFacadeClass()

getFacadeClass()