roundcubemail/program/lib/Roundcube/rcube_imap.php
public function get_permflags($folder)
    {
        if (!strlen($folder)) {
            return array();
        }

        if (!$this->check_connection()) {
            return array();
        }

        if ($this->conn->select($folder)) {
            $permflags = $this->conn->data['PERMANENTFLAGS'];
        }
        else {
            return array();
        }

        if (!is_array($permflags)) {
            $permflags = array();
        }

        return $permflags;
    }
public function get_permflags($folder)
    {
        if (!strlen($folder)) {
            return array();
        }

        if (!$this->check_connection()) {
            return array();
        }

        if ($this->conn->select($folder)) {
            $permflags = $this->conn->data['PERMANENTFLAGS'];
        }
        else {
            return array();
        }

        if (!is_array($permflags)) {
            $permflags = array();
        }

        return $permflags;
    }
public function get_permflags ( $ folder ) { if ( ! strlen ( $ folder ) ) { return array ( ) ; } if ( ! $ this -> check_connection ( ) ) { return array ( ) ; } if ( $ this -> conn -> select ( $ folder ) ) { $ permflags = $ this -> conn -> data [ 'PERMANENTFLAGS' ] ; } else { return array ( ) ; } if ( ! is_array ( $ permflags ) ) { $ permflags = array ( ) ; } return $ permflags ; }
Returns PERMANENTFLAGS of the specified folder

@param string $folder Folder name

@return array Flags
Returns PERMANENTFLAGS of the specified folder