original_string: public function allAclRights()
      {
          $this->login();
  
          $rights = array(
              Horde_Imap_Client::ACL_LOOKUP,
              Horde_Imap_Client::ACL_READ,
              Horde_Imap_Client::ACL_SEEN,
              Horde_Imap_Client::ACL_WRITE,
              Horde_Imap_Client::ACL_INSERT,
              Horde_Imap_Client::ACL_POST,
              Horde_Imap_Client::ACL_ADMINISTER
          );
  
          if ($capability = $this->_capability()->getParams('RIGHTS')) {
              // Add rights defined in CAPABILITY string (RFC 4314).
              return array_merge($rights, str_split(reset($capability)));
          }
  
          // Add RFC 2086 rights (deprecated by RFC 4314, but need to keep for
          // compatibility with old servers).
          return array_merge($rights, array(
              Horde_Imap_Client::ACL_CREATE,
              Horde_Imap_Client::ACL_DELETE
          ));
      }
code: public function allAclRights()
      {
          $this->login();
  
          $rights = array(
              Horde_Imap_Client::ACL_LOOKUP,
              Horde_Imap_Client::ACL_READ,
              Horde_Imap_Client::ACL_SEEN,
              Horde_Imap_Client::ACL_WRITE,
              Horde_Imap_Client::ACL_INSERT,
              Horde_Imap_Client::ACL_POST,
              Horde_Imap_Client::ACL_ADMINISTER
          );
  
          if ($capability = $this->_capability()->getParams('RIGHTS')) {
              // Add rights defined in CAPABILITY string (RFC 4314).
              return array_merge($rights, str_split(reset($capability)));
          }
  
          // Add RFC 2086 rights (deprecated by RFC 4314, but need to keep for
          // compatibility with old servers).
          return array_merge($rights, array(
              Horde_Imap_Client::ACL_CREATE,
              Horde_Imap_Client::ACL_DELETE
          ));
      }
code_tokens: public function allAclRights ( ) { $ this -> login ( ) ; $ rights = array ( Horde_Imap_Client :: ACL_LOOKUP , Horde_Imap_Client :: ACL_READ , Horde_Imap_Client :: ACL_SEEN , Horde_Imap_Client :: ACL_WRITE , Horde_Imap_Client :: ACL_INSERT , Horde_Imap_Client :: ACL_POST , Horde_Imap_Client :: ACL_ADMINISTER ) ; if ( $ capability = $ this -> _capability ( ) -> getParams ( 'RIGHTS' ) ) { // Add rights defined in CAPABILITY string (RFC 4314). return array_merge ( $ rights , str_split ( reset ( $ capability ) ) ) ; } // Add RFC 2086 rights (deprecated by RFC 4314, but need to keep for // compatibility with old servers). return array_merge ( $ rights , array ( Horde_Imap_Client :: ACL_CREATE , Horde_Imap_Client :: ACL_DELETE ) ) ; }
docstring: Return master list of ACL rights available on the server.
  
  @return array  A list of ACL rights.
docstring_tokens: Return master list of ACL rights available on the server .