Example #1
0
 /**
  * Returns the access control list for mailbox (GETACL)
  *
  * @param string $mailbox Mailbox name
  *
  * @return array User-rights array on success, NULL on error
  * @access public
  * @since 0.5-beta
  */
 function get_acl($mailbox)
 {
     if ($this->get_capability('ACL')) {
         return $this->conn->getACL($mailbox);
     }
     return NULL;
 }
Example #2
0
 /**
  * Returns the access control list for folder (GETACL)
  *
  * @param string $folder Folder name
  *
  * @return array User-rights array on success, NULL on error
  * @since 0.5-beta
  */
 public function get_acl($folder)
 {
     if (!$this->get_capability('ACL')) {
         return null;
     }
     if (!$this->check_connection()) {
         return null;
     }
     return $this->conn->getACL($folder);
 }