osc_has_categories()

osc_has_categories()

Let you know if there are more categories in the list. If categories are not loaded, this function will load them.

Code osc_has_categories():


    function osc_has_categories() {
        if ( !View::newInstance()->_exists('categories') ) {
            View::newInstance()->_exportVariableToView('categories', Category::newInstance()->toTree() );
        }
        return View::newInstance()->_next('categories');
    }

    /**
     *
     * @return boolean
     */