Methods summary
public static
|
#
getTitle( string & $title, string $catDir, integer $catId )
getTitle Legacy_Category.{dirname}.GetTitle
getTitle Legacy_Category.{dirname}.GetTitle
Parameters
- $title
string &$title category title
- $catDir
string category module's directory name
- $catId
integer category id
|
public static
|
#
getTree( Legacy_AbstractCategoryObject[] & $tree, string $catDir, string $authType, integer $catId = 0, string $module = null )
getTree Legacy_Category.{dirname}.GetTree Get category
Legacy_AbstractCategoryObject array in parent-child tree order
getTree Legacy_Category.{dirname}.GetTree Get category
Legacy_AbstractCategoryObject array in parent-child tree order
Parameters
- $tree
Legacy_AbstractCategoryObject[]
- $catDir
string category module's dirname
- $authType
string ex) viewer, editor, manager
- $catId
integer get tree under this cat_id
- $module
string module confinement
|
public static
|
#
getTitleList( string & $titleList, string $catDir )
getTitleList Legacy_Category.{dirname}.GetTitleList
getTitleList Legacy_Category.{dirname}.GetTitleList
Parameters
- $titleList
string &$titleList category title array
- $catDir
string category module's dirname
|
public static
|
#
hasPermission( boolean & $check, string $catDir, integer $catId, string $authType, string $module = null )
hasPermission Legacy_Category.{dirname}.HasPermission
hasPermission Legacy_Category.{dirname}.HasPermission
Parameters
- $check
boolean &$check
- $catDir
string category module's dirname
- $catId
integer category id
- $authType
string ex) viewer, editor, manager
- $module
string module confinement
|
public static
|
#
getParent( Legacy_AbstractCategoryObject & $parent, string $catDir, integer $catId )
getParent Legacy_Category.{dirname}.GetParent get the parent category
object.
getParent Legacy_Category.{dirname}.GetParent get the parent category
object.
Parameters
|
public static
|
#
getChildren( Legacy_AbstractCategoryObject[] & $children, string $catDir, integer $catId, string $authType, string $module = null )
getChildren Legacy_Category.{dirname}.GetChildren get the child category
objects. Be careful that you can get only children objects, excluded the given
category itself.
getChildren Legacy_Category.{dirname}.GetChildren get the child category
objects. Be careful that you can get only children objects, excluded the given
category itself.
Parameters
- $children
Legacy_AbstractCategoryObject[]
&$children
- $catDir
string category module's dirname
- $catId
integer the parent's category id
- $authType
string ex) viewer, editor, manager
- $module
string module confinement
|
public static
|
#
getCatPath( string[] & $catPath, string $catDir, integer $catId, string $order = 'ASC' )
getCatPath Legacy_Category.{dirname}.GetCatPath get category path array from
top to the given category.
getCatPath Legacy_Category.{dirname}.GetCatPath get category path array from
top to the given category.
Parameters
- $catPath
string[] &$catPath $catPath['cat_id'] $catPath['title']
- $catDir
string category module's dirname
- $catId
integer terminal category id in the category path
- $order
string 'ASC' or 'DESC'
|
public static
|
#
getPermittedIdList( int[] & $idList, string $catDir, string $authType, integer $uid, integer $catId = 0, string $module = null )
getPermittedIdList Legacy_Category.{dirname}.GetPermittedIdList get category
ids of permission.
getPermittedIdList Legacy_Category.{dirname}.GetPermittedIdList get category
ids of permission.
Parameters
- $idList
int[] &$idList
- $catDir
string category module's dirname
- $authType
string ex) viewer, editor, manager
- $uid
integer
- $catId
integer get result under this cat_id
- $module
string module confinement
|