steffen: server/kolab-horde-framework/kolab-horde-framework/DataTree DataTree.php, NONE, 1.1 package.xml, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:06 CEST 2005
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/DataTree
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/DataTree
Added Files:
DataTree.php package.xml
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: DataTree.php ---
<?php
// Available import/export formats.
/** @constant DATATREE_FORMAT_TREE List every object in an array,
similar to PEAR/html/menu.php */
define('DATATREE_FORMAT_TREE', 1);
/** @constant DATATREE_FORMAT_FETCH List every object in an array
child-parent. Comes from driver pear/sql */
define('DATATREE_FORMAT_FETCH', 2);
/** @constant DATATREE_FORMAT_FLAT Get a full list - an array of keys */
define('DATATREE_FORMAT_FLAT', 3);
/**
* The DataTree:: class provides a common abstracted interface into
* the various backends for the Horde DataTree system.
*
* A piece of data is just a title that is saved in the page for the
[...1126 lines suppressed...]
*/
function get($attribute)
{
return isset($this->data[$attribute])
? $this->data[$attribute]
: null;
}
/**
* Set one of the attributes of the object.
*
* @param string $attribute The attribute to set.
* @param mixed $value The value for $attribute.
*/
function set($attribute, $value)
{
$this->data[$attribute] = $value;
}
}
--- NEW FILE: package.xml ---
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Horde: framework/DataTree/package.xml,v 1.11 2004/04/08 19:35:36 chuck Exp $ -->
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
<name>Horde_DataTree</name>
<summary>DataTree API</summary>
<description>
TODO
</description>
<license>LGPL</license>
<maintainers>
<maintainer>
<user>chuck</user>
<role>lead</role>
<name>Chuck Hagenbuch</name>
<email>chuck at horde.org</email>
</maintainer>
</maintainers>
<release>
<version>0.0.1</version>
<state>alpha</state>
<date>2003-02-11</date>
<notes>Initial packaging.</notes>
<provides type="class" name="DataTree" />
<provides type="class" name="DataTreeObject" />
<filelist>
<file role="php" name="DataTree.php" baseinstalldir="/Horde"/>
<dir name="DataTree" role="php" baseinstalldir="/Horde">
<file name="null.php" />
<file name="sql.php" />
</dir>
</filelist>
</release>
<deps>
<dep type="php" rel="ge" version="4.2.0+" />
<dep type="ext" rel="has" optional="yes">gettext</dep>
<dep type="pkg" rel="has">Horde_Framework</dep>
<dep type="pkg" rel="has">Horde_Serialize</dep>
<dep type="pkg" rel="has">Horde_SQL</dep>
<dep type="pkg" rel="has">Horde_Util</dep>
</deps>
</package>
More information about the commits
mailing list