本文整理汇总了PHP中event::get_list方法的典型用法代码示例。如果您正苦于以下问题:PHP event::get_list方法的具体用法?PHP event::get_list怎么用?PHP event::get_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::get_list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$max_show_error = 10;
// all events
$events_all = 0;
// all error events
$events_error = 0;
$table = new htmlobject_table_identifiers_checked('event_id');
$arHead = array();
$arHead['event_icon'] = array();
$arHead['event_icon']['title'] = '';
$arHead['event_id'] = array();
$arHead['event_id']['title'] = 'ID';
$arHead['event_description'] = array();
$arHead['event_description']['title'] = 'Description';
$arBody = array();
$event = new event();
$event_list = $event->get_list();
foreach ($event_list as $ev) {
$events_all++;
$event_id = $ev['value'];
$g_event = new event();
$g_event->get_instance_by_id($event_id);
if ($g_event->priority <= 2 && $g_event->status == 0) {
// fill in event-error
$events_error++;
if ($events_error < $max_show_error) {
$arBody[] = array('event_icon' => "<img widht='16' height='16' src='/openqrm/base/img/error.png'>", 'event_id' => $g_event->id, 'event_description' => $g_event->description);
}
}
}
$table->id = 'Tabelle';
$table->css = 'htmlobject_table';