PHP Class Microweber\Providers\CategoryManager

Show file Open project: microweber/microweber

Public Properties

Property Type Description
$app
$table_prefix
$tables

Public Methods

Method Description
__OLD__tree ( $params = false ) remove me
__construct ( $app = null )
delete ( $data )
delete_item ( $data )
get ( $params )
get_by_id ( $id, $by_field_name = 'id' ) : array
get_by_slug ( $slug )
get_category_id_from_url ( $url = false )
get_children ( $parent_id, $type = false, $visible_on_frontend = false )
get_for_content ( $content_id, $data_type = 'categories' )
get_items ( mixed $params, string $data_type = 'categories' ) : array | boolean Gets category items.
get_items_count ( $id, $rel_type = false ) : array | boolean Gets category items count.
get_page ( $category_id )
get_parents ( $id, $without_main_parrent = false, $data_type = 'category' )
link ( $id )
reorder ( $data )
save ( $data, $preserve_cache = false )
save_item ( $params )
tree ( $params = false ) category_tree.

Private Methods

Method Description
html_tree ( $parent, $link = false, $active_ids = false, $active_code = false, $remove_ids = false, $removed_ids_code = false, $ul_class_name = false, $include_first = false, $content_type = false, $li_class_name = false, $add_ids = false, $orderby = false, $only_with_content = false, $visible_on_frontend = false, $depth_level_counter, $max_level = false, $list_tag = false, $list_item_tag = false, $active_code_tag = false, $ul_class_deep = false, $only_ids = false ) `.

Method Details

__OLD__tree() public method

remove me
public __OLD__tree ( $params = false )

__construct() public method

public __construct ( $app = null )

delete() public method

public delete ( $data )

delete_item() public method

public delete_item ( $data )

get() public method

public get ( $params )

get_by_id() public method

Author: Peter Ivanov
public get_by_id ( $id, $by_field_name = 'id' ) : array
return array

get_by_slug() public method

public get_by_slug ( $slug )

get_category_id_from_url() public method

public get_category_id_from_url ( $url = false )

get_children() public method

public get_children ( $parent_id, $type = false, $visible_on_frontend = false )

get_for_content() public method

public get_for_content ( $content_id, $data_type = 'categories' )

get_items() public method

Gets category items.
public get_items ( mixed $params, string $data_type = 'categories' ) : array | boolean
$params mixed Array or string with parameters
$data_type string
return array | boolean

get_items_count() public method

Gets category items count.
public get_items_count ( $id, $rel_type = false ) : array | boolean
return array | boolean

get_page() public method

public get_page ( $category_id )

get_parents() public method

public get_parents ( $id, $without_main_parrent = false, $data_type = 'category' )

reorder() public method

public reorder ( $data )

save() public method

public save ( $data, $preserve_cache = false )

save_item() public method

public save_item ( $params )

tree() public method

category_tree.
Author: Microweber
public tree ( $params = false )
$params = array();

Property Details

$app public property

public $app

$table_prefix public property

public $table_prefix

$tables public property

public $tables