Example #1
0
 /**
  * Returns the set of rights that the current user has to
  * mailbox (MYRIGHTS)
  *
  * @param string $mailbox Mailbox name
  *
  * @return array MYRIGHTS response on success, NULL on error
  * @access public
  * @since 0.5-beta
  */
 function my_rights($mailbox)
 {
     if ($this->get_capability('ACL')) {
         return $this->conn->myRights($mailbox);
     }
     return NULL;
 }
Example #2
0
 /**
  * Returns the set of rights that the current user has to
  * folder (MYRIGHTS)
  *
  * @param string $folder Folder name
  *
  * @return array MYRIGHTS response on success, NULL on error
  * @since 0.5-beta
  */
 public function my_rights($folder)
 {
     if (!$this->get_capability('ACL')) {
         return null;
     }
     if (!$this->check_connection()) {
         return null;
     }
     return $this->conn->myRights($folder);
 }