controllers/commands/Role.php
protected function wizardAddRole()
    {
        $this->validatePrompt('name', $this->text('Name'), 'user_role');
        $this->validatePromptList('permissions', $this->text('Permissions'), 'user_role');
        $this->validatePrompt('redirect', $this->text('Redirect'), 'user_role', '');
        $this->validatePrompt('status', $this->text('Status'), 'user_role', 0);
        $this->setSubmittedList('permissions');

        $this->validateComponent('user_role');
        $this->addRole();
    }
protected function wizardAddRole()
    {
        $this->validatePrompt('name', $this->text('Name'), 'user_role');
        $this->validatePromptList('permissions', $this->text('Permissions'), 'user_role');
        $this->validatePrompt('redirect', $this->text('Redirect'), 'user_role', '');
        $this->validatePrompt('status', $this->text('Status'), 'user_role', 0);
        $this->setSubmittedList('permissions');

        $this->validateComponent('user_role');
        $this->addRole();
    }
protected function wizardAddRole ( ) { $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'user_role' ) ; $ this -> validatePromptList ( 'permissions' , $ this -> text ( 'Permissions' ) , 'user_role' ) ; $ this -> validatePrompt ( 'redirect' , $ this -> text ( 'Redirect' ) , 'user_role' , '' ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'user_role' , 0 ) ; $ this -> setSubmittedList ( 'permissions' ) ; $ this -> validateComponent ( 'user_role' ) ; $ this -> addRole ( ) ; }
Add a new user role step by step
Add a new user role step by step