Returns an instance of Navigation
Singleton pattern implementation
void
createLinkCanonical
( $url)
Delete navigation item by id
boolean
delItem
(int $id)
Create Breadcrumbs one by type
string
getBreadcrumbHtml
(int $id, [string $title = null], [string $type = 'product'])
-
int
$id: current object id
-
string
$title: current object title
-
string
$type: current type
void
getByAliace
( $aliace, [ $type = null])
void
getByPageId
( $page_id)
Create meta canonical
Allow variable
$canonikal - html meta canonicals
void
getCanonical
(string $url, int $page, int $total, int $limit)
-
string
$url
-
int
$page
-
int
$total
-
int
$limit
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;
void
getMeta
([ $type = null], [ $defaul_content = ''])
Check allow item for current user
boolean
isAllow
(array $item)
Create html admin page for navigation
string
loadAdminHtml
()
Load html categories as navigation menu
boolean
loadAllCategories
(array $allow, string $type, [boolean $parent = false])
-
array
$allow
-
string
$type
-
boolean
$parent
Create html admin form for edit or add navigation item
string
loadForm
([int $id = null])
-
int
$id: navigation identifer
Create li objects for all navigation menu
boolean
loadHtml
(string $type, [string $double = NULL])
-
string
$type: navigation name
-
string
$double: navigation sub name
Create html menu for sidebar one by pages
string
loadPages
([ $return_all = false])
void
save
([ $data = array()])
Save item navigation
array
saveNav
()