contenido\includes\functions.pathresolver.php
Description: Path resolving functions
Requirements:
- Author
- Timo A. Hummel
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6 {@internal created unknown modified 2006-12-14, init array $results in fct prResolvePathViaURLNames, prResolvePathViaCategoryNames, return type is now integer modified 2008-06-26, Frederic Schneider, add security fix modified 2008-08-11, Bilal Arslan, Change prResolvePathViaCategoryNames function for take current path language id! modified 2008-11-11, Andreas Lindner, Change prResolvePathViaCategoryNames, suppress change of current language if an url path is found in current and at least one more language modified 2009-10-23, Murat Purc, removed deprecated function (PHP 5.3 ready) and formatting $Id: functions.pathresolver.php 2014 2012-03-10 16:27:01Z dominik.ziegler $: }}
- Version
- 1.1.9
Functions

prCreateURLNameLocationString(int $idcat, string $seperator, string $cat_str, boolean $makeLink = false, string $linkClass = "", integer $firstTreeElementToUse = 0, $uselang = 0, $final = true, $usecache = false) : string
Recursive function to create an URL name location string
Name | Type | Description |
---|---|---|
$idcat | int | ID of the starting category |
$seperator | string | Seperation string |
$cat_str | string | Category location string (by reference) |
$makeLink | boolean | create location string with links |
$linkClass | string | stylesheet class for the links |
$firstTreeElementToUse | integer | first navigation level location string should be printed out (first level = 0!!) |
$uselang | ||
$final | ||
$usecache |
Type | Description |
---|---|
string | location string |
- Author
- Jan Lengowski
- Author
- Marco Jahn
- Copyright
- four for business AG

prResolvePathViaCategoryNames( $path, $iLangCheck) : integer
prResolvePathViaCategoryNames: Resolves a path using some fuzzy logic.
Warning: If you use this function, try to pass a "good" path. This function doesn't guarantee that the matches are logically best-matches.
This function operates on the actual category names.
Name | Type | Description |
---|---|---|
$path | string Path to resolve | |
$iLangCheck |
Type | Description |
---|---|
integer | Closest matching category ID (idcat) |

prResolvePathViaURLNames( $path) : integer
prResolvePathViaURLNames: Resolves a path using some fuzzy logic.
Warning: If you use this function, try to pass a "good" path. This function doesn't guarantee that the matches are logically best-matches.
This function operates on the category aliases. It compares the given path with the urlpaths generated by function prCreateURLNameLocationString() based on category aliases.
Name | Type | Description |
---|---|---|
$path | string Path to resolve |
Type | Description |
---|---|
integer | Closest matching category ID (idcat) |