protected function wizardAddUser()
    {
        // Required
        $this->validatePrompt('email', $this->text('E-mail'), 'user');
        $this->validatePrompt('password', $this->text('Password'), 'user');
        $this->validatePrompt('name', $this->text('Name'), 'user');

        // Optional
        $this->validatePrompt('role_id', $this->text('Role ID'), 'user', 0);
        $this->validatePrompt('store_id', $this->text('Store ID'), 'user', $this->config->get('store', 1));
        $this->validatePrompt('timezone', $this->text('Timezone'), 'user', $this->config->get('timezone', 'Europe/London'));
        $this->validatePrompt('status', $this->text('Status'), 'user', 0);
        $this->validatePrompt('data', $this->text('Data'), 'user');
        $this->setSubmittedJson('data');

        $this->validateComponent('user');
        $this->addUser();
    }
protected function wizardAddUser()
    {
        // Required
        $this->validatePrompt('email', $this->text('E-mail'), 'user');
        $this->validatePrompt('password', $this->text('Password'), 'user');
        $this->validatePrompt('name', $this->text('Name'), 'user');

        // Optional
        $this->validatePrompt('role_id', $this->text('Role ID'), 'user', 0);
        $this->validatePrompt('store_id', $this->text('Store ID'), 'user', $this->config->get('store', 1));
        $this->validatePrompt('timezone', $this->text('Timezone'), 'user', $this->config->get('timezone', 'Europe/London'));
        $this->validatePrompt('status', $this->text('Status'), 'user', 0);
        $this->validatePrompt('data', $this->text('Data'), 'user');
        $this->setSubmittedJson('data');

        $this->validateComponent('user');
        $this->addUser();
    }
protected function wizardAddUser ( ) { // Required $ this -> validatePrompt ( 'email' , $ this -> text ( 'E-mail' ) , 'user' ) ; $ this -> validatePrompt ( 'password' , $ this -> text ( 'Password' ) , 'user' ) ; $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'user' ) ; // Optional $ this -> validatePrompt ( 'role_id' , $ this -> text ( 'Role ID' ) , 'user' , 0 ) ; $ this -> validatePrompt ( 'store_id' , $ this -> text ( 'Store ID' ) , 'user' , $ this -> config -> get ( 'store' , 1 ) ) ; $ this -> validatePrompt ( 'timezone' , $ this -> text ( 'Timezone' ) , 'user' , $ this -> config -> get ( 'timezone' , 'Europe/London' ) ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'user' , 0 ) ; $ this -> validatePrompt ( 'data' , $ this -> text ( 'Data' ) , 'user' ) ; $ this -> setSubmittedJson ( 'data' ) ; $ this -> validateComponent ( 'user' ) ; $ this -> addUser ( ) ; }
Add a new user step by step
Add a new user step by step