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';
            }
        }
    }
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';
            }
        }
    }
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' ; } } }
Sets the current admin mode
@param string
Sets the current admin mode