contenido\plugins\repository\custom\FrontendNavigation.php
\FrontendNavigation
- Author
- Willi Man
- Copyright
- four for business AG
- Created
- 25.03.2005
- Modified
- 22.11.2005
- Version
- 1.1.0
Methods

FrontendNavigation( $db, $cfg, $cfgClient, $client, $lang) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $db | ||
| $cfg | ||
| $cfgClient | ||
| $client | ||
| $lang |

getCategoryOfArticle(int $iArticleId) : intGet category of article.
If an article is assigned to more than one category take the first category.
| Name | Type | Description |
|---|---|---|
| $iArticleId | int |
| Type | Description |
|---|---|
| int | category id |

getCategoryPath( $cat_id, $level = 0, $reverse = true) : voidGet path of a given category up to a certain level
| Name | Type | Description |
|---|---|---|
| $cat_id | ||
| $level | ||
| $reverse |

getFrontContentUrl(integer $iIdcat, integer $iIdart, boolean $bAbsolute = true) : stringGet URL by given category in front_content.php style
| Name | Type | Description |
|---|---|---|
| $iIdcat | integer | |
| $iIdart | integer | |
| $bAbsolute | boolean | return absolute path or not |
| Type | Description |
|---|---|
| string | URL |
- Access
- public
- Author
- Willi Man

getSubCategories( $iParentCategory) : voidGet child categories by given parent category
| Name | Type | Description |
|---|---|---|
| $iParentCategory |

getSubTree(int $idcat_start) : arrayget subtree by a given id
| Name | Type | Description |
|---|---|---|
| $idcat_start | int | Id of category |
| Type | Description |
|---|---|
| array | Array with subtree |
- Copyright
- four for business AG

getSuccessor( $iCategory) : voidGet direct successor of a given category Note: does not work if direct successor (with preid 0) is not visible or not public
| Name | Type | Description |
|---|---|---|
| $iCategory |

getURL(integer $iIdcat, integer $iIdart, $sType = '', boolean $bAbsolute = true, $iLevel = 0) : stringGet URL by given categoryid and/or articleid
| Name | Type | Description |
|---|---|---|
| $iIdcat | integer | url name to create for |
| $iIdart | integer | |
| $sType | ||
| $bAbsolute | boolean | return absolute path or not |
| $iLevel |
| Type | Description |
|---|---|
| string | URL |
- Access
- public
- Author
- Willi Man

getUrlPath(integer $iIdcat, integer $iIdart, boolean $bAbsolute = true, $iLevel = 0, $sURL_SUFFIX = 'index.html') : stringGet urlpath by given category and/or idart and level.
The urlpath looks like /Home/Product/Support/ where the directory-like string equals a category path.
| Name | Type | Description |
|---|---|---|
| $iIdcat | integer | |
| $iIdart | integer | |
| $bAbsolute | boolean | return absolute path or not |
| $iLevel | ||
| $sURL_SUFFIX |
| Type | Description |
|---|---|
| string | path information or empty string |
- Access
- public
- Author
- Marco Jahn (Project www.usa.de)
- Modified
- by Willi Man
- Requires
- functions.pathresolver.php

getUrlPathGenParam(integer $iIdcat, integer $iSelectedNumber, boolean $bAbsolute = true, $iLevel = 0) : stringGet urlpath by given category and/or selected param and level.
| Name | Type | Description |
|---|---|---|
| $iIdcat | integer | |
| $iSelectedNumber | integer | |
| $bAbsolute | boolean | return absolute path or not |
| $iLevel |
| Type | Description |
|---|---|
| string | path information or empty string |
- Access
- public
- Author
- Willi Man
- Requires
- functions.pathresolver.php

hasChildren( $iParentCategory) : voidCheck if child categories of a given parent category exist
| Name | Type | Description |
|---|---|---|
| $iParentCategory |

hasSuccessor( $iCategory) : voidCheck if a given category has a direct successor
| Name | Type | Description |
|---|---|---|
| $iCategory |

isParent( $parentid, $catid) : voidReturn true if $parentid is parent of $catid
| Name | Type | Description |
|---|---|---|
| $parentid | ||
| $catid |