udm_cat_path()
udm_cat_path - Get the path to the current category
Syntax
array udm_cat_path (
resource $agent,
string $category)
Arguments
- agent - A link to Agent, received after call to udm_alloc_agent().
- category
Description
Returns an array describing the path in the categories tree from the tree root to the current one, specified by category.
Version
PHP 4.0.6, 5 <= 5.0.5, PECL mnogosearch >= 1.0.0
Return value
The returned array consists of pairs. Elements with even index numbers contain the category paths, odd elements contain the corresponding category names.