/**
* Constructor.
*
* @param Horde_Registry $registry A registry object.
* @param Horde_Dav_Storage_Base $storage A storage object.
*/
public function __construct(Horde_Registry $registry, Horde_Dav_Storage_Base $storage)
{
$this->_registry = $registry;
$this->_storage = $storage;
foreach (array('calendar', 'tasks') as $interface) {
try {
$application = $this->_registry->hasInterface($interface);
if ($application) {
$this->_interfaces[$interface] = $application;
}
} catch (Horde_Exception $e) {
}
}
}