Class Category

Description

TAM AG CMS

  • author: DevilDev

Located in /category/Category.php (line 11)

ModelAbstract
   |
   --Category
Variable Summary
Method Summary
static Category getInstance ()
string createCategorySelectTree (string $name, [int $id = 0])
array getById (int $id)
array getByParentId (array $parent_id)
string getLastNews (int $count, [int $id = NULL])
string loadAdminHtml ([bool $return = false])
array loadAllOneById (int $id)
array loadAllOneByProductId (int $product_id)
string loadCategoryDetailHtml (int $id)
string loadCategoryHtml ()
string loadForm ()
string loadMenuHtml ([ $position = ''], [ $limit = 20])
string loadTopCategory (int $count)
void loadTopMenuHtml ([ $limit = 0])
void _init ()
Variables
static Category $_instance = null (line 18)

Singleton instance

  • access: protected
Methods
static method getInstance (line 28)

Returns an instance of Category

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Category getInstance ()
createCategorySelectTree (line 278)

Create html select tree

  • return: html select
  • access: public
string createCategorySelectTree (string $name, [int $id = 0])
  • string $name
  • int $id
getById (line 985)

Load category one by id

  • return: or false
  • access: public
array getById (int $id)
  • int $id: current category id
getByParentId (line 1013)

Load all categories one by parent id

  • return: or false
  • access: public
array getByParentId (array $parent_id)
  • array $parent_id: or int $parent_id
getLastNews (line 679)

Create html last categories

Allow variables:
$news_list - string html lines last categories

  • return: html or false
  • access: public
string getLastNews (int $count, [int $id = NULL])
  • int $count: count load last category
  • int $id: ignore category_id default NULL
loadAdminHtml (line 342)

Create html for admin module categories

Allow variable:
$news_lines - html lines categories $pagination - html pagination

  • return: html or array
  • access: public
string loadAdminHtml ([bool $return = false])
  • bool $return
loadAllOneById (line 959)

Load all categories one by id

  • return: categories or false
  • access: public
array loadAllOneById (int $id)
  • int $id: current category id
loadAllOneByProductId (line 905)

Load all categories one by product id

  • return: categories or false
  • access: public
array loadAllOneByProductId (int $product_id)
  • int $product_id
loadCategoryDetailHtml (line 591)

Create html for category detail page

Allow variables:
$order_type - product sort orders, $sort_price - order for price (low|high)
$news - all categoy data
$slider - string html category slider
$news_list - string other categories
$product_list - string html all products whith current category
$canonical - string html meta canonical
$pagination - string html products pagination
$search_line - string html search form

  • return: html
  • access: public
string loadCategoryDetailHtml (int $id)
  • int $id: category_id
loadCategoryHtml (line 520)

Create html for all categories

Allow variables:
$news_line - string html lines categories
$q - string search query
$pagination - string html pagination
$news_list - string html other categories

  • return: html
  • access: public
string loadCategoryHtml ()
loadForm (line 145)

Create html for admin edit category

Allow variable
$lang_select - html select language
$parent_select = html select parent category
$images_form - html lines for images

  • return: html
  • access: public
string loadForm ()
loadMenuHtml (line 746)

Create menu from categories

Allow variable
$language - string language code

  • return: html category menu
  • access: public
string loadMenuHtml ([ $position = ''], [ $limit = 20])
  • $position
  • $limit
loadTopCategory (line 57)

Create html top categories

Allow variables:
$news_line - html all category lines

  • return: html or false
  • access: public
string loadTopCategory (int $count)
  • int $count
loadTopMenuHtml (line 888)
  • access: public
void loadTopMenuHtml ([ $limit = 0])
  • $limit
_init (line 38)
void _init ()

Documentation generated on Fri, 19 Aug 2016 17:10:29 +0200 by phpDocumentor 1.4.3