/** * Returns the share parameters. * * @param string $folder The folder name. * * @return string The folder/share parameters. */ public function getParameters($folder) { $parameters = $this->_driver->getAnnotation($folder, self::ANNOTATION_SHARE_PARAMETERS); if (!empty($parameters)) { return unserialize(base64_decode($parameters)); } else { return array(); } }
/** * Fetches the annotation on a folder. * * @param string $entry The entry to fetch. * @param string $folder The name of the folder. * * @return string The annotation value. */ public function getAnnotation($entry, $folder) { return $this->_driver->getAnnotation($entry, $folder); }
/** * Returns the active sync settings. * * @param string $folder The folder name. * * @return array The folder active sync parameters. */ public function getActiveSync($folder) { return json_decode(base64_decode($this->_driver->getAnnotation($folder, self::ANNOTATION_ACTIVE_SYNC)), true); }