/** * @param EntityBuilderHelper $entityBuilder * @param bool $tableHasActions [optional] * @param bool $appendCreateButton [optional] */ function buildListView($entityBuilder, $tableHasActions = true, $appendCreateButton = true) { $entityInstances = $entityBuilder->getList(); buildListViewFromList($entityBuilder, $entityInstances, $tableHasActions, $appendCreateButton); }
<?php /** * Created by PhpStorm. * User: C.R.C * Date: 6/28/2015 * Time: 4:30 PM */ use fti\adv_db\entity\StudentResult; require_once dirname(dirname(__FILE__)) . '/includes/loader.php'; require_once dirname(dirname(__FILE__)) . '/pages/listHelper.php'; redirectIfNotStudent(); $entityBuilder = StudentResult::getBuilder(); $currentlyLoggedInStudent = getCurrentlyLoggedInUser(); $studentResultInstances = StudentResult::getFilteredList($currentlyLoggedInStudent); buildListViewFromList($entityBuilder, $studentResultInstances, false, false); require_once dirname(dirname(__FILE__)) . '/pages/listPage.php';