Class Navigation

Description

TAM AG CMS

  • author: DevilDev

Located in /navigation/Navigation.php (line 11)

ModelAbstract
   |
   --Navigation
Variable Summary
Method Summary
void createLinkCanonical ( $url)
boolean delItem (int $id)
string getBreadcrumbHtml (int $id, [string $title = null], [string $type = 'product'])
void getByAliace ( $aliace, [ $type = null])
void getByPageId ( $page_id)
void getCanonical (string $url, int $page, int $total, int $limit)
void getMeta ([ $type = null], [ $defaul_content = ''])
boolean isAllow (array $item)
string loadAdminHtml ()
boolean loadAllCategories (array $allow, string $type, [boolean $parent = false])
string loadForm ([int $id = null])
boolean loadHtml (string $type, [string $double = NULL])
string loadPages ([ $return_all = false])
void makeAliace ( $str)
void save ([ $data = array()])
array saveNav ()
void _init ()
Variables
static Navigation $_instance = null (line 18)

Singleton instance

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

Returns an instance of Navigation

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Navigation getInstance ()
createLinkCanonical (line 679)
  • access: public
void createLinkCanonical ( $url)
  • $url
delItem (line 56)

Delete navigation item by id

  • access: public
boolean delItem (int $id)
  • int $id
getBreadcrumbHtml (line 1315)

Create Breadcrumbs one by type

  • access: public
string getBreadcrumbHtml (int $id, [string $title = null], [string $type = 'product'])
  • int $id: current object id
  • string $title: current object title
  • string $type: current type
getByAliace (line 188)
  • access: public
void getByAliace ( $aliace, [ $type = null])
  • $aliace
  • $type
getByPageId (line 208)
  • access: public
void getByPageId ( $page_id)
  • $page_id
getCanonical (line 633)

Create meta canonical

Allow variable
$canonikal - html meta canonicals

  • access: public
void getCanonical (string $url, int $page, int $total, int $limit)
  • string $url
  • int $page
  • int $total
  • int $limit
getMeta (line 560)

Create seo meta tags for current page

Allow variable
$meta_title, $meta_keywords, $meta_descript - meta tags
$no_index - add meta tag robots with value no index (option in seo page) return TRUE if not empty meta_title or FALSE on failure;

  • access: public
void getMeta ([ $type = null], [ $defaul_content = ''])
  • $type
  • $defaul_content
isAllow (line 693)

Check allow item for current user

boolean isAllow (array $item)
  • array $item
loadAdminHtml (line 348)

Create html admin page for navigation

  • access: public
string loadAdminHtml ()
loadAllCategories (line 1128)

Load html categories as navigation menu

  • access: public
boolean loadAllCategories (array $allow, string $type, [boolean $parent = false])
  • array $allow
  • string $type
  • boolean $parent
loadForm (line 230)

Create html admin form for edit or add navigation item

  • access: public
string loadForm ([int $id = null])
  • int $id: navigation identifer
loadHtml (line 729)

Create li objects for all navigation menu

boolean loadHtml (string $type, [string $double = NULL])
  • string $type: navigation name
  • string $double: navigation sub name
loadPages (line 1257)

Create html menu for sidebar one by pages

  • return: | boolean
  • access: public
string loadPages ([ $return_all = false])
  • $return_all
makeAliace (line 1441)
  • access: public
void makeAliace ( $str)
  • $str
save (line 169)
  • access: public
void save ([ $data = array()])
  • $data
saveNav (line 80)

Save item navigation

  • access: public
array saveNav ()
_init (line 38)
void _init ()

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