* @throws Horde_Kolab_Format_Exception If the class for the object type could
* not be loaded.
*/
- static public function &factory($object_type = '', $params = null)
+ static public function factory($object_type = '', $params = null)
{
$object_type = ucfirst(str_replace('-', '', $object_type));
$class = 'Horde_Kolab_Format_Xml_' . $object_type;
if (class_exists($class)) {
- $driver = &new $class($params);
+ $driver = new $class($params);
} else {
throw new Horde_Kolab_Format_Exception(sprintf(_("Failed to load Kolab XML driver %s"),
$object_type));
/**
* Save the specifc XML values.
*
- * @param array $root The XML document root.
+ * @param array &$root The XML document root.
* @param array $object The resulting data array.
*
* @return boolean True on success.
*
* @throws Horde_Exception If converting the data to XML failed.
*/
- protected function _save($root, $object)
+ protected function _save(&$root, $object)
{
// Handle name fields
$name = array();
/**
* Generates an ID for the given information.
*
- * @param array $info The data of the object.
+ * @param array &$info The data of the object.
*
* @return string The ID.
*/
- public function generateId($info)
+ public function generateId(&$info)
{
if (!empty($info[self::ATTRIBUTE_ID])) {
if (is_array($info[self::ATTRIBUTE_ID])) {
/**
* Generates an ID for the given information.
*
- * @param array $info The data of the object.
+ * @param array &$info The data of the object.
*
* @static
*
* @return string|PEAR_Error The ID.
*/
- public function generateId($info)
+ public function generateId(&$info)
{
$id = $info[self::ATTRIBUTE_CN];
if (is_array($id)) {
/**
* Generates an ID for the given information.
*
- * @param array $info The data of the object.
+ * @param array &$info The data of the object.
*
* @static
*
* @return string|PEAR_Error The ID.
*/
- public function generateId($info)
+ public function generateId(&$info)
{
return self::ATTRIBUTE_K . '=kolab';
}
/**
* Generates an ID for the given information.
*
- * @param array $info The data of the object.
+ * @param array &$info The data of the object.
*
* @static
*
/**
* Generates an ID for the given information.
*
- * @param array $info The data of the object.
+ * @param array &$info The data of the object.
*
* @static
*
* @return string|PEAR_Error The ID.
*/
- public function generateId($info)
+ public function generateId(&$info)
{
return self::ATTRIBUTE_CN . '=' . $this->server->structure->quoteForUid(trim($info['cn'], " \t\n\r\0\x0B,"));
}
Horde_Auth::getAuth() => PERMS_SHOW | PERMS_READ |
PERMS_EDIT | PERMS_DELETE));
}
- $this->_perms = &new Horde_Kolab_Storage_Permission($this, $perms);
+ $this->_perms = new Horde_Kolab_Storage_Permission($this, $perms);
}
return $this->_perms;
}
}
if (!is_a($perms, 'Horde_Permission_Kolab')) {
- $this->_perms = &new Horde_Permission_Kolab($this, $perms->data);
+ $this->_perms = new Horde_Permission_Kolab($this, $perms->data);
} else {
- $this->_perms = &$perms;
+ $this->_perms = $perms;
$this->_perms->setFolder($this);
}