本文整理匯總了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';