public function getTriggered(array $data = array(), array $options = array())
    {
        $options += array('status' => 1);
        $triggers = (array) $this->getList($options);

        if (empty($triggers)) {
            return array();
        }

        $triggered = array();
        foreach ($triggers as $trigger) {
            if ($this->condition->isMet($trigger, $data)) {
                $triggered[] = $trigger['trigger_id'];
            }
        }

        return $triggered;
    }
public function getTriggered(array $data = array(), array $options = array())
    {
        $options += array('status' => 1);
        $triggers = (array) $this->getList($options);

        if (empty($triggers)) {
            return array();
        }

        $triggered = array();
        foreach ($triggers as $trigger) {
            if ($this->condition->isMet($trigger, $data)) {
                $triggered[] = $trigger['trigger_id'];
            }
        }

        return $triggered;
    }
public function getTriggered ( array $ data = array ( ) , array $ options = array ( ) ) { $ options += array ( 'status' => 1 ) ; $ triggers = ( array ) $ this -> getList ( $ options ) ; if ( empty ( $ triggers ) ) { return array ( ) ; } $ triggered = array ( ) ; foreach ( $ triggers as $ trigger ) { if ( $ this -> condition -> isMet ( $ trigger , $ data ) ) { $ triggered [ ] = $ trigger [ 'trigger_id' ] ; } } return $ triggered ; }
Returns an array of triggered IDs for the given context
@param array $data
@param array $options
@return array
Returns an array of triggered IDs for the given context