getAnnotation() public method

Fetches the annotation from a folder.
public getAnnotation ( string $folder, string $annotation ) : string
$folder string The name of the folder.
$annotation string The annotation to get.
return string The annotation value.
Ejemplo n.º 1
0
 /**
  * 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();
     }
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }