PHP 클래스 Categories_library, 68kb

파일 보기 프로젝트 열기: 68kb/68kb

보호된 프로퍼티들

프로퍼티 타입 설명
$_all_cats
$_cat_ids
$_categories
$_ci

공개 메소드들

메소드 설명
__construct ( ) Constructor
category_tree ( $data = [], $id = 'cat_id', $parent = 'cat_parent' ) Category Tree
clear_ids ( ) Clear ids
get_categories ( ) : array Get Categories
get_child_ids ( $parent ) Get Child Category Ids
get_ids ( ) : array Get ids
make_list ( $data, $options = [] ) Make a list of categories

비공개 메소드들

메소드 설명
_category_subtree ( $cat_id, $cat_array, $depth ) Category Sub Tree
_child_subtree ( $cat_id, $cat_array, $depth ) Generate the child ids for the parent.
_walk_categories ( $parent_id, $menu_data, $options, $start ) Walk though the array

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

category_tree() 공개 메소드

Get categories in an array
public category_tree ( $data = [], $id = 'cat_id', $parent = 'cat_parent' )

clear_ids() 공개 메소드

Clear out the category ids so they do not overlap.
public clear_ids ( )

get_categories() 공개 메소드

Get the full array of categories
public get_categories ( ) : array
리턴 array

get_child_ids() 공개 메소드

Get a list of all child categories in an array
public get_child_ids ( $parent )

get_ids() 공개 메소드

Get the array of category ids
public get_ids ( ) : array
리턴 array

make_list() 공개 메소드

Make a list of categories
public make_list ( $data, $options = [] )

프로퍼티 상세

$_all_cats 보호되어 있는 프로퍼티

protected $_all_cats

$_cat_ids 보호되어 있는 프로퍼티

protected $_cat_ids

$_categories 보호되어 있는 프로퍼티

protected $_categories

$_ci 보호되어 있는 프로퍼티

protected $_ci