[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the GenericCategoryCache class. This is the object handling genreric category lists.
Author: | fplanque: Francois PLANQUE. |
Author: | mbruneau: Marc BRUNEAU / PROGIDISTRI |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
Version: | $Id: _genericcategorycache.class.php,v 1.3 2007/10/08 08:33:15 fplanque Exp $ |
Poids: | 401 lignes (12 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
GenericCategoryCache:: (6 méthodes):
GenericCategoryCache()
clear()
add()
reveal_children()
recurse()
recurse_select()
Classe: GenericCategoryCache - X-Ref
GenericCategoryCache classGenericCategoryCache( $objtype, $load_all, $tablename, $prefix = '', $dbIDname = 'ID', $name_field = NULL, $subset_property = NULL ) X-Ref |
Constructor |
clear() X-Ref |
Empty/reset the cache |
add( & $Obj ) X-Ref |
Add a dataobject to the cache |
reveal_children( $subset_ID = NULL ) X-Ref |
Reveal children After this each Category will have an array pointing to its direct children param: integer|NULL NULL for all subsets |
recurse( $callbacks, $subset_ID = NULL, $cat_array = NULL, $level = 0 ) X-Ref |
Return recursive display of loaded categories param: array callback funtions (to format the display) param: integer|NULL NULL for all subsets param: array categories list to display param: int depth of categories list return: string recursive list of all loaded categories |
recurse_select( $selected = NULL, $subset_ID = NULL, $include_root = false, $Cat_array = NULL, $level = 0, $exclude_array = array() X-Ref |
Return recursive select options list of all loaded categories param: integer selected category in the select input param: integer NULL for all subsets param: boolean Include the root element? param: array GenercCategory objects to display (will recurse from those starting points) param: integer depth of categories list param: array IDs of categories to exclude (their children will be ignored to) return: string select options list of all loaded categories |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |