public function cmdUpdateTrigger()
    {
        $params = $this->getParam();

        if (empty($params[0]) || count($params) < 2) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        if (!is_numeric($params[0])) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        $this->setSubmitted(null, $params);
        $this->setSubmitted('data.conditions', $this->getSubmitted('conditions'));
        $this->setSubmittedList('data.conditions');
        $this->setSubmitted('update', $params[0]);

        $this->validateComponent('trigger');

        $this->updateTrigger($params[0]);
        $this->output();
    }