protected function _changeSelected($mailbox = null, $mode = null)
    {
        $this->_mode = $mode;
        if (is_null($mailbox)) {
            $this->_selected = null;
        } else {
            $this->_selected = clone $mailbox;
            $this->_mailboxOb()->reset();
        }
    }
protected function _changeSelected($mailbox = null, $mode = null)
    {
        $this->_mode = $mode;
        if (is_null($mailbox)) {
            $this->_selected = null;
        } else {
            $this->_selected = clone $mailbox;
            $this->_mailboxOb()->reset();
        }
    }
protected function _changeSelected ( $ mailbox = null , $ mode = null ) { $ this -> _mode = $ mode ; if ( is_null ( $ mailbox ) ) { $ this -> _selected = null ; } else { $ this -> _selected = clone $ mailbox ; $ this -> _mailboxOb ( ) -> reset ( ) ; } }
Called when the selected mailbox is changed.

@param mixed $mailbox  The selected mailbox or null.
@param integer $mode   The access mode.
Called when the selected mailbox is changed .