Ejemplo n.º 1
0
 /**
  * Return the permissions of the current session on the node given by path.
  * Permission can be of 4 types:
  *
  * - add_node
  * - read
  * - remove
  * - set_property
  *
  * This function will return an array containing zero, one or more of the
  * above strings.
  *
  * @param string $absPath absolute path to node to get permissions for it
  *
  * @return array of string
  */
 public function getPermissions($absPath)
 {
     if (!$this->transport instanceof PermissionInterface) {
         throw new UnsupportedRepositoryOperationException('Transport does not support permissions');
     }
     return $this->transport->getPermissions($absPath);
 }