protected function submitEditTrigger()
    {
        if ($this->isPosted('delete')) {
            $this->deleteTrigger();
        } else if ($this->isPosted('save') && $this->validateEditTrigger()) {
            if (isset($this->data_trigger['trigger_id'])) {
                $this->updateTrigger();
            } else {
                $this->addTrigger();
            }
        }
    }
protected function submitEditTrigger()
    {
        if ($this->isPosted('delete')) {
            $this->deleteTrigger();
        } else if ($this->isPosted('save') && $this->validateEditTrigger()) {
            if (isset($this->data_trigger['trigger_id'])) {
                $this->updateTrigger();
            } else {
                $this->addTrigger();
            }
        }
    }
protected function submitEditTrigger ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteTrigger ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditTrigger ( ) ) { if ( isset ( $ this -> data_trigger [ 'trigger_id' ] ) ) { $ this -> updateTrigger ( ) ; } else { $ this -> addTrigger ( ) ; } } }
Handles a submitted trigger data
Handles a submitted trigger data