[ Index ]

PHP Cross Reference of ACL Module

title

Body

[close]

/components/strategies/nestedSet/pathMaterialization/ -> PmPathManager.php (summary)

(no description)

File Size: 81 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PmPathManager:: (4 methods):
  appendToPath()
  getParentPath()
  buildMultiplePathCondition()
  getSeparator()


Class: PmPathManager  - X-Ref

The Path-Manager provides basic functionality for working with paths such as:
- building paths
- splitting the paths up into their ids
- building Query-conditions

appendToPath($path, $id)   X-Ref
Appends the given ID (denoting an element) to the given path

param: string $path
param: string $id
return: string   the full path including the new element

getParentPath($path)   X-Ref
Returns the parent path of the given path and the ID of the parent

param: array[string path, string ID] $path

buildMultiplePathCondition($field, $paths, $additionalCondition = '')   X-Ref
Builds an sql-condition like: ($field LIKE [...] [AND condition]) OR ($field LIKE [...] [AND condition])
for all the given paths

param: string    $field  the field to match (for example: path)
param: array[string] $paths
param: string $additionalCondition If given, this will be used as an additional condition
return: string   the condition

getSeparator()   X-Ref
No description



Generated: Sun Jul 1 19:24:45 2012 Cross-referenced by PHPXref 0.7.1