original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Add a new user role step by step
docstring_tokens: Add a new user role step by step