diff --git a/app/classes/component.php b/app/classes/component.php index 88e78bf..f02a5f2 100644 --- a/app/classes/component.php +++ b/app/classes/component.php @@ -1,14 +1,40 @@ db = $database->getConnection(); } - // list of component events + /** + * Retrieves Jitsi component events based on various filters. + * + * @param string $jitsi_component The Jitsi component name. + * @param int $component_id The component ID. + * @param string $event_type The type of event to filter by. + * @param string $from_time The start date in 'YYYY-MM-DD' format. + * @param string $until_time The end date in 'YYYY-MM-DD' format. + * @param int $offset The offset for pagination. + * @param int $items_per_page The number of items to retrieve per page. + * + * @return array The list of Jitsi component events or an empty array if no results. + */ public function jitsiComponents($jitsi_component, $component_id, $event_type, $from_time, $until_time, $offset=0, $items_per_page='') { // time period drill-down @@ -63,7 +89,6 @@ ORDER BY return $query->fetchAll(PDO::FETCH_ASSOC); } - } ?>