public function check ($data) { if (!is_null($this->stop_slot) && coren::slot_used($this->stop_slot)) return; if (!is_null($this->stop_name) && coren::name_used($this->stop_name)) return; $data = null;//??? make it configurable? return coren::event($this->event, $data); }
public function check ($data) { if (!is_null($this->stop_slot) && coren::slot_used($this->stop_slot)) return; if (!is_null($this->stop_name) && coren::name_used($this->stop_name)) return; $event_data = null; return coren::event($this->evaluate($data) ? $this->event_true : $this->event_false, $event_data); }
public function check ($data) { if (!is_null($this->stop_slot) && coren::slot_used($this->stop_slot)) return; if (!is_null($this->stop_name) && coren::name_used($this->stop_name)) return; $event_data = null; $values = $this->evaluate($event_data); if (!is_null($values))//??? return coren::event(vsprintf($this->event_mask, $values), $event_data); }