Copyright 2010-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
/** * Exception handling. * * @param mixed $result The result to be checked for a PEAR_Error. * * @return mixed Returns the original result if it was no PEAR_Error. * * @throws Horde_Exception_Pear In case the result was a PEAR_Error. */ public static function catchError($result) { self::$_class = __CLASS__; return parent::catchError($result); }
/** * Expunges messages in the current folder. * * @return mixed True or a PEAR error in case of an error. */ public function expunge($folder) { $this->select($folder); return Horde_Kolab_Storage_Exception_Pear::catchError($this->getBackend()->expunge()); }