protected function wizardAddTrigger()
    {
        $this->validatePrompt('name', $this->text('Name'), 'trigger');
        $this->validatePrompt('store_id', $this->text('Store'), 'trigger');
        $this->validatePromptList('data.conditions', $this->text('Conditions'), 'trigger');
        $this->validatePrompt('status', $this->text('Status'), 'trigger', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'trigger', 0);
        $this->setSubmittedList('data.conditions');

        $this->validateComponent('trigger');
        $this->addTrigger();
    }
protected function wizardAddTrigger()
    {
        $this->validatePrompt('name', $this->text('Name'), 'trigger');
        $this->validatePrompt('store_id', $this->text('Store'), 'trigger');
        $this->validatePromptList('data.conditions', $this->text('Conditions'), 'trigger');
        $this->validatePrompt('status', $this->text('Status'), 'trigger', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'trigger', 0);
        $this->setSubmittedList('data.conditions');

        $this->validateComponent('trigger');
        $this->addTrigger();
    }
protected function wizardAddTrigger ( ) { $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'trigger' ) ; $ this -> validatePrompt ( 'store_id' , $ this -> text ( 'Store' ) , 'trigger' ) ; $ this -> validatePromptList ( 'data.conditions' , $ this -> text ( 'Conditions' ) , 'trigger' ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'trigger' , 0 ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'trigger' , 0 ) ; $ this -> setSubmittedList ( 'data.conditions' ) ; $ this -> validateComponent ( 'trigger' ) ; $ this -> addTrigger ( ) ; }
Add a trigger step by step
Add a trigger step by step