*/
public function set($attribute, $value)
{
- return $this->datatreeObject->set($attribute, $value);
+ Horde_Exception_Pear::catchError($this->datatreeObject->set($attribute, $value));
}
/**
*/
public function get($attribute)
{
- return $this->datatreeObject->get($attribute);
+ return Horde_Exception_Pear::catchError($this->datatreeObject->get($attribute));
}
/**
*/
public function getId()
{
- return $this->datatreeObject->getId();
+ return Horde_Exception_Pear::catchError($this->datatreeObject->getId());
}
/**
*/
public function getName()
{
- return $this->datatreeObject->getName();
+ return Horde_Exception_Pear::catchError($this->datatreeObject->getName());
}
/**
*/
protected function _save()
{
- return $this->datatreeObject->save();
+ Horde_Exception_Pear::catchError($this->datatreeObject->save());
}
/**
{
$this->datatreeObject->data['perm'] = $perm->getData();
if ($update) {
- return $this->datatreeObject->save();
+ Horde_Exception_Pear::catchError($this->datatreeObject->save());
}
- return true;
}
/**
* Returns the permission of this share.
*
* @return Horde_Perms_Permission Permission object that represents the
- * permissions on this share
+ * permissions on this share
*/
public function getPermission()
{
- $perm = new Horde_Perms_Permission($this->datatreeObject->getName());
+ $perm = new Horde_Perms_Permission(Horde_Exception_Pear::catchError($this->datatreeObject->getName()));
$perm->data = isset($this->datatreeObject->data['perm'])
? $this->datatreeObject->data['perm']
: array();
-
return $perm;
}
-
}