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.
 
 
 
 

32 lines
637 B

<?php
class Event
{
private $conf;
function __construct()
{
$this->conf = new 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' => $type,
'data' => $event,
)));
// Outputting any RPC calls.
RPC::commit();
}
}
?>