* @license PHP License * @package WB * @subpackage base */ WBClass::load('WBAjax'); /** * Simple AJAX Caller: EventObserver * * Poll site events and such. * * @todo not implemented, yet * @version 0.1.0 * @package WB * @subpackage base */ class WBAjax_EventObserver extends WBAjax { /** * second construcotr * * Called by constructer of super class. * * @see include/WB/WBAjax#init() */ protected function init() { } /** * poll site events * * Check whether there are any queued events and report them * * @uses doBrowse() * @return string comment list HTML */ protected function poll() { $data = array( 'timestamp' => time(), 'count' => $this->req->get('count', 0) ); return json_encode($data); } } ?>