original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: Called when the selected mailbox is changed.
  
  @param mixed $mailbox  The selected mailbox or null.
  @param integer $mode   The access mode.
docstring_tokens: Called when the selected mailbox is changed .