original_string: protected function setAdminModeCheckout($mode)
      {
          $this->admin = null;
  
          if ($this->access('order_add')) {
  
              if ($mode === 'add') {
                  $this->admin = 'add';
              }
  
              if ($mode === 'clone' && $this->access('order_edit')) {
                  $this->admin = 'clone';
              }
          }
      }
code: protected function setAdminModeCheckout($mode)
      {
          $this->admin = null;
  
          if ($this->access('order_add')) {
  
              if ($mode === 'add') {
                  $this->admin = 'add';
              }
  
              if ($mode === 'clone' && $this->access('order_edit')) {
                  $this->admin = 'clone';
              }
          }
      }
code_tokens: protected function setAdminModeCheckout ( $ mode ) { $ this -> admin = null ; if ( $ this -> access ( 'order_add' ) ) { if ( $ mode === 'add' ) { $ this -> admin = 'add' ; } if ( $ mode === 'clone' && $ this -> access ( 'order_edit' ) ) { $ this -> admin = 'clone' ; } } }
docstring: Sets the current admin mode
  @param string
docstring_tokens: Sets the current admin mode