-
$_attributeCache
-
Cache of attributes for any objects created during this page request.
-
$_data
-
Array of all data: indexed by id. The format is: array(id => 'name' => name, 'parent' => parent).
-
$_dataCache
-
Cache of data for any objects created during this page request.
-
$_db
-
Handle for the current database connection, used for reading.
-
$_nameMap
-
A hash that can be used to map a full object name (parent:child:object) to that object's unique ID.
-
$_params
-
Hash containing connection parameters.
-
$_sortHash
-
Actual attribute sorting hash.
-
$_tableCount
-
The number of copies of the horde_datatree_attributes table that we need to join on in the current query.
-
$_write_db
-
Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.
-
_add
-
Add an object.
-
_buildAttributeQuery
-
Builds a piece of an attribute query.
-
_cmp
-
Sort two objects by their order field, and if that is the same, alphabetically (case insensitive) by name.
-
_cmpSorted
-
Sorts two objects by their sorter hash field.
-
_defineObjectClass
-
Dynamically determines the object class.
-
_exists
-
Check for existance of an object in a backend-specific manner.
-
_exists
-
Check for existance of an object in a backend-specific manner.
-
_extractOneLevel
-
Extract one level of data for a parent leaf, sorted first by their order and then by name. This function is a way to get a collection of $leaf's children.
-
_getAlias
-
Get an alias to horde_datatree_attributes, incrementing it if necessary.
-
_getId
-
Look up a datatree id by name.
-
_getId
-
Look up a datatree id by name.
-
_getName
-
Look up a datatree name by id.
-
_getName
-
Look up a datatree name by id.
-
_init
-
Attempts to open a connection to the SQL server.
-
_init
-
Init the object.
-
_reorder
-
Change order of children of an object.
-
$data
-
Key-value hash that will be serialized.
-
$datatree
-
This object's DataTree instance.
-
DataTree
-
Constructor.
-
DataTree
-
The DataTree:: class provides a common abstracted interface into the various backends for the Horde DataTree system.
-
DataTree.php
-
-
DataTreeObject
-
DataTreeObject constructor.
-
DataTreeObject
-
Class that can be extended to save arbitrary information as part of a stored object.
-
DATATREE_BUILD_COUNT
-
Build a count only query.
-
DATATREE_BUILD_SELECT
-
Build a normal select query.
-
DATATREE_BUILD_VALUES
-
Build an attribute only query.
-
DATATREE_BUILD_VALUES_COUNT
-
-
DATATREE_FORMAT_FLAT
-
Get a full list - an array of keys.
-
DATATREE_FORMAT_TREE
-
List every object in an array, similar to PEAR/html/menu.php.
-
DataTree_null
-
The DataTree_null:: class provides a dummy implementation of the DataTree:: API; no data will last beyond a single page request.
-
DATATREE_ROOT
-
The root element (top-level parent) of each DataTree group.
-
DataTree_sql
-
The DataTree_sql:: class provides an SQL implementation of the Horde DataTree system.
-
delete
-
Delete this object from the backend permanently.
-
get
-
Export a list of objects.
-
get
-
Gets one of the attributes of the object, or null if it isn't defined.
-
getAttributes
-
Retrieves data for an object from the horde_datatree_attributes table.
-
getAttributes
-
Retrieve data for an object.
-
getAttributes
-
Retrieve data for an object from the horde_datatree_attributes table.
-
getAttributeValues
-
Returns a list of all of the available values of the given attribute name/key combination. Either attribute_name or attribute_key MUST be supplied, and both MAY be supplied.
-
getAttributeValues
-
Returns a list of all of the available values of the given attribute name/key combination. Either attribute_name or attribute_key MUST be supplied, and both MAY be supplied.
-
getByAttributes
-
Returns a set of object ids based on a set of attribute criteria.
-
getByAttributes
-
Returns a set of object ids based on a set of attribute criteria.
-
getByAttributes
-
Returns a set of object ids based on a set of attribute criteria.
-
getById
-
Export a list of objects just like get() above, but uses an object id to fetch the list of objects.
-
getChild
-
Returns a child of this object.
-
getData
-
Retrieve data for an object from the datatree_data field.
-
getData
-
Gets the data array.
-
getData
-
Retrieve data for an object from the datatree_data field.
-
getData
-
Retrieves data for an object from the datatree_data field.
-
getGroups
-
Returns a list of all groups (root nodes) of the data tree.
-
getGroups
-
Returns a list of all groups (root nodes) of the data tree.
-
getId
-
Get the id of an object from its name.
-
getId
-
Gets the ID of this object.
-
getName
-
Gets the name of this object.
-
getName
-
Get the name of an object from its id.
-
getNumberOfChildren
-
Get the number of children an object has, only counting immediate children, not grandchildren, etc.
-
getObject
-
Returns a DataTreeObject (or subclass) object of the data in the object defined by $object.
-
getObjectById
-
Returns a DataTreeObject (or subclass) object of the data in the object with the ID $id.
-
getObjects
-
Returns an array of DataTreeObject (or subclass) objects corresponding to the objects in $ids, with the object names as the keys of the array.
-
getOrder
-
Get the order position of an object.
-
getParam
-
Returns a parameter of this DataTree instance.
-
getParent
-
Returns a child's direct parent ID.
-
getParent
-
Returns this object's parent.
-
getParentById
-
Get a $child's direct parent ID.
-
getParentIdString
-
Get a parent ID string (id:cid format) for the specified object.
-
getParentList
-
Get a list of parents all the way up to the root object for $child.
-
getParents
-
Get a list of parents all the way up to the root object for $child.
-
getShortName
-
Get the short name of an object, returns only the last portion of the full name. For display purposes only.
-
getShortName
-
Gets the short name of this object.
-
getSortedTree
-
Returns a tree sorted by the specified attribute name and/or key.
-
getSortedTree
-
Returns a tree sorted by the specified attribute name and/or key.
-
getSortedTree
-
Get a tree sorted by the specified attribute name and/or key.
-
getValuesByAttributes
-
Returns a list of all of the available values of the given criteria Either attribute_name or attribute_key MUST be supplied, and both MAY be supplied.
-
sql.php
-
-
save
-
Saves any changes to this object to the backend permanently. New objects are added instead.
-
set
-
Sets one of the attributes of the object.
-
set
-
Import a list of objects. Used by drivers to populate the internal $_data array.
-
setData
-
Sets the data array.
-
setDataTree
-
Sets the
DataTree instance used to retrieve this object.
-
setName
-
Sets the name of this object.
-
setOrder
-
Explicitly set the order for a datatree object.
-
setOrder
-
Explicitly set the order for a datatree object.
-
setOrder
-
Explicitly set the order for a datatree object.
-
setOrder
-
Sets the order of this object in its object collection.
-
singleton
-
Attempts to return a reference to a concrete DataTree instance based on $driver.
-
sortByAttributes
-
Sorts IDs by attribute values. IDs without attributes will be added to the end of the sorted list.
-
sortByAttributes
-
Sorts IDs by attribute values. IDs without attributes will be added to the end of the sorted list.
-
sortByAttributes
-
Sorts IDs by attribute values. IDs without attributes will be added to the end of the sorted list.
-
sortHash
-
Create attribute sort hash