original_string: 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();
              }
          }
      }
code: 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();
              }
          }
      }
code_tokens: 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 ( ) ; } } }
docstring: Handles a submitted trigger data
docstring_tokens: Handles a submitted trigger data