예제 #1
0
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);
}
예제 #2
0
파일: event_if_0.php 프로젝트: nolar/coren
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);
}
예제 #3
0
파일: event_by_0.php 프로젝트: nolar/coren
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);
}