function spewRecent($params, $options) { $qparams = Url::getRequestQueryParams(); $filters = array(); $groupDao = new \com\indigloo\sc\dao\Group(); $pageSize = 100; $paginator = new Pagination($qparams, $pageSize); $groups = $groupDao->getPaged($paginator, $filters); $startId = NULL; $endId = NULL; if (sizeof($groups) > 0) { $startId = $groups[0]["id"]; $endId = $groups[sizeof($groups) - 1]["id"]; } $pageBaseUrl = $options["path"]; $title = "Recent groups"; $file = APP_WEB_DIR . "/view/group/cards-page.php"; include $file; }
<?php include 'sc-app.inc'; include APP_WEB_DIR . '/inc/header.inc'; use com\indigloo\Url; use com\indigloo\ui\Pagination; use com\indigloo\sc\auth\Login; use com\indigloo\ui\Filter; $qparams = Url::getRequestQueryParams(); $filters = array(); $groupDao = new \com\indigloo\sc\dao\Group(); $pageSize = 100; $paginator = new Pagination($qparams, $pageSize); $groups = $groupDao->getPaged($paginator, $filters); $startId = NULL; $endId = NULL; if (sizeof($groups) > 0) { $startId = $groups[0]['id']; $endId = $groups[sizeof($groups) - 1]['id']; } $pageBaseUrl = "/group/all.php"; $title = "All groups"; $file = APP_WEB_DIR . "/view/group/cards-page.php"; include $file;