Microweber\Providers\CategoryManager::get_items_count PHP Метод

get_items_count() публичный Метод

Gets category items count.
public get_items_count ( $id, $rel_type = false ) : array | boolean
Результат array | boolean
    public function get_items_count($id, $rel_type = false)
    {
        if ($id == false) {
            return false;
        }
        $table_items = $this->tables['categories_items'];
        $params = array();
        $params['table'] = $table_items;
        $params['parent_id'] = $id;
        if ($rel_type != false) {
            $params['rel_type'] = $rel_type;
        }
        $params['count'] = true;
        $data = $this->app->database_manager->get($params);
        return $data;
    }