contenido\includes\functions.pathresolver.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    Project: Contenido Content Management System

    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

    functionprCreateURLNameLocationString(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

    Parameters
    NameTypeDescription
    $idcatint

    ID of the starting category

    $seperatorstring

    Seperation string

    $cat_strstring

    Category location string (by reference)

    $makeLinkboolean

    create location string with links

    $linkClassstring

    stylesheet class for the links

    $firstTreeElementToUseinteger

    first navigation level location string should be printed out (first level = 0!!)

    $uselang
    $final
    $usecache
    Returns
    TypeDescription
    stringlocation string
    Details
    Author
    Jan Lengowski  
    Author
    Marco Jahn  
    Copyright
    four for business AG  
    functionprResolvePathViaCategoryNames( $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.

    Parameters
    NameTypeDescription
    $path

    string Path to resolve

    $iLangCheck
    Returns
    TypeDescription
    integerClosest matching category ID (idcat)
    functionprResolvePathViaURLNames( $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.

    Parameters
    NameTypeDescription
    $path

    string Path to resolve

    Returns
    TypeDescription
    integerClosest matching category ID (idcat)
    Documentation was generated by phpDocumentor 2.0.0a12.