jitsiComponents($jitsi_component, $component_id, $event_type, $from_time, $until_time, $offset, $items_per_page); $search_all = $componentObject->jitsiComponents($jitsi_component, $component_id, $event_type, $from_time, $until_time); if (!empty($search)) { // we get total items and number of pages $item_count = count($search_all); $totalPages = ceil($item_count / $items_per_page); $components = array(); $components['records'] = array(); foreach ($search as $item) { extract($item); $component_record = array( // assign title to the field in the array record 'component' => $jitsi_component, 'loglevel' => $loglevel, 'time' => $time, 'component ID' => $component_id, 'event' => $event_type, 'param' => $event_param, ); // populate the result array array_push($components['records'], $component_record); } } // filter message $filterMessage = array(); if (isset($_REQUEST['name']) && $_REQUEST['name'] != '') { array_push($filterMessage, 'Jitsi events for component "' . $_REQUEST['name'] . '"'); } elseif (isset($_REQUEST['id']) && $_REQUEST['id'] != '') { array_push($filterMessage, 'Jitsi events for component ID "' . $_REQUEST['id'] . '"'); } // Get any new messages include '../app/includes/messages.php'; include '../app/includes/messages-show.php'; // display the widget include '../app/templates/components.php'; } ?>