You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.1 KiB

<?php
class Event
{
private $conf;
function __construct()
{
$this->conf = new \system\Conf();
}
function runEvent($type, $event = false)
{
global $polling;
if(!$polling) { // avoids issues while loading pages.
return;
}
$widgets = WidgetWrapper::getInstance(false);
/*
* $widgets->iterate('runEvents', array(
array(
'type' => 'allEvents',
'data' => $event,
)));*/
$widgets->iterate('runEvents', array(
array(
'type' => $type,
'data' => $event,
)));
/*$widgets->iterateAll('isEvents', array(
array(
'type' => $type,
'data' => $event,
)));*/
// Outputting any RPC calls.
RPC::commit();
}
}
?>