Class: CategoryUtil
Source Location: /pnobjlib/CategoryUtil.class.phpInherited Variables
Inherited Methods
Class Details
[line 19]
CategoryUtil
[ Top ]
Class Methods
method buildPaths [line 1170]
|
Given an array of categories (with the category-IDs being the keys of the array), return an (idenically indexed) array of category-paths based on the given field (name or id make sense)
Tags:
Parameters:
[ Top ]
method buildRelativePaths [line 1091]
|
Given an array of categories (with the Property-Names being
the keys of the array) and it corresponding Parent categories (indexed with the Property-Names too), return an (identically indexed) array of category-paths based on the given field (name or id make sense)
Tags:
Parameters:
[ Top ]
method buildRelativePathsForCategory [line 1119]
|
Given a category with its parent category, return an (idenically indexed) array of category-paths based on the given field (name or id make sense)
Tags:
Parameters:
[ Top ]
method cmpDesc [line 1027]
|
Compare function for ML description field
Tags:
Parameters:
[ Top ]
method cmpName [line 1003]
method copyCategoriesByID [line 617]
|
Copy categories by ID (recursive copy)
Tags:
Parameters:
[ Top ]
method copyCategoriesByPath [line 654]
|
Copy Categories by Path (recurisve copy)
Tags:
Parameters:
[ Top ]
method copySubCategoriesByPath [line 638]
|
Copy SubCategories by Path (recurisve copy)
Tags:
Parameters:
[ Top ]
method deleteCategoriesByPath [line 490]
|
Delete categories by Path
Tags:
Parameters:
[ Top ]
method deleteCategoryByID [line 467]
method getCategories [line 69]
|
Return an array of categories objects according the specified where-clause and sort criteria.
Tags:
Parameters:
[ Top ]
method getCategoriesByParentID [line 192]
|
Return the direct subcategories of the specified category
Tags:
Parameters:
[ Top ]
method getCategoriesByPath [line 279]
|
Return an array of category objects by path without the root category
Tags:
Parameters:
[ Top ]
method getCategoriesByRegistry [line 151]
|
Return an array of categories by the registry info
Tags:
Parameters:
[ Top ]
method getCategoryByID [line 28]
method getCategoryByPath [line 120]
|
Return a folder object by it's path
Tags:
Parameters:
[ Top ]
method getCategoryTreeJS [line 815]
|
Get the java-script for the tree menu
Tags:
Parameters:
[ Top ]
method getCategoryTreeStructure [line 842]
|
Return an array of folders the user has at least access/view rights to.
Tags:
Parameters:
[ Top ]
method getParentCategories [line 237]
|
Return all parent categories starting from id
Tags:
Parameters:
[ Top ]
method getSelector_Categories [line 905]
|
Return the HTML selector code for the given category hierarchy
Tags:
Parameters:
[ Top ]
method getSubCategories [line 329]
|
Return an array of Subcategories for the specified folder
Tags:
Parameters:
[ Top ]
method getSubCategoriesByPath [line 374]
|
Return an array of Subcategories for the specified folder
Tags:
Parameters:
[ Top ]
method getSubCategoriesForCategory [line 420]
|
Return an array of Subcategories by for the given category
Tags:
Parameters:
[ Top ]
method hasCategoryAccess [line 1241]
|
Check for access to a certain set of categories
For each category property in the list, check if we have access to that category in that property. Check is done as "Categories:Property:$propertyName", "$cat[id]::"
Tags:
Parameters:
[ Top ]
method haveDirectSubcategories [line 785]
|
Check whether the category $cid has subcategories (optional checks for leafe )
Tags:
Parameters:
[ Top ]
method isDirectSubCategory [line 728]
|
Check whether $cid is a direct subcategory of $root_id
Tags:
Parameters:
[ Top ]
method isDirectSubCategoryByID [line 704]
|
Check whether $cid is a direct subcategory of $root_id
Tags:
Parameters:
[ Top ]
method isSubCategory [line 767]
|
Check whether $cat is a subcategory of $rootCat
Tags:
Parameters:
[ Top ]
method isSubCategoryByID [line 742]
|
Check whether $cid is a subcategory of $root_id
Tags:
Parameters:
[ Top ]
method moveCategoriesByID [line 516]
|
Move categories by ID (recursive move)
Tags:
Parameters:
[ Top ]
method moveCategoriesByPath [line 558]
|
Move Categories by Path (recursive move)
Tags:
Parameters:
[ Top ]
method moveSubCategoriesByPath [line 542]
|
Move SubCategories by Path (recurisve move)
Tags:
Parameters:
[ Top ]
method rebuildPaths [line 1205]
|
Rebuild the path field for all categories in the database Note that the
Parameters:
[ Top ]
method resequence [line 1063]
|
Resequence the sort fields for the given category
Tags:
Parameters:
[ Top ]
method sortByLocale [line 1048]
|
Utility function to sort a category array by the current locate of either the ML name or description
Tags:
Parameters:
[ Top ]
