/** * Creates a new Horde_Share and creates the address book * on the IMSP server. * * @param array The params for the share. * * @return Horde_Share The share object. * @throws Turba_Exception */ public function createShare($share_id, $params) { $params['params']['name'] = $this->params['username']; if (!isset($params['default']) || $params['default'] !== true) { $params['params']['name'] .= '.' . $params['name']; } $result = Turba::createShare($share_id, $params); try { Horde_Core_Imsp_Utils::createBook($GLOBALS['cfgSources']['imsp'], $params['params']['name']); } catch (Horde_Imsp_Exception $e) { throw new Turba_Exception($e); } return $result; }