/** * @param EntityBuilderHelper $entityBuilder * @param Entity[] $entityInstances * @param bool $tableHasActions [optional] * @param bool $appendCreateButton [optional] */ function buildListViewFromList($entityBuilder, $entityInstances, $tableHasActions = true, $appendCreateButton = true) { $isEmpty = false; if (empty($entityInstances)) { $isEmpty = true; array_push($entityInstances, $entityBuilder->createEmpty()); } $listViewAggregator = new ListViewAggregator($entityInstances, $tableHasActions); $contentHeader = $entityBuilder->getLabel(); $contentAction = 'Lista'; $contentHTML = $listViewAggregator->buildListHTML($isEmpty, $appendCreateButton); $GLOBALS[CONTENT_HEADER] = $contentHeader; $GLOBALS[CONTENT_ACTION] = $contentAction; $GLOBALS[CONTENT_HTML] = $contentHTML; }
$member2Professor = Professor::getBuilder()->getByIdentifier(array(Professor::PROP_ID => $entityInstances[0]->getProperty(ExamResult::PROP_EXAM_MEMBER2_ID)->getValue())); } $listViewAggregator = new ListViewAggregator($entityInstances, true); $listViewAggregator->setIsUpdateButtonDisplayed(true); $listViewAggregator->setIsDeleteButtonDisplayed(false); $baseURL = get_assets_base_url(); $listDefaultFileName = LIST_DEFAULT_FILE_NAME; $filterArgs = http_build_str($filters); $previousURL = $baseURL . "result/{$listDefaultFileName}?{$filterArgs}"; $previousURL = urlencode($previousURL); $listViewAggregator->setCommonParams(array(PREVIOUS_URL => $previousURL)); $subjectInstance = Subject::getBuilder()->getByIdentifier(array(Subject::PROP_ID => $subjectID)); $groupInstance = Group::getBuilder()->getByIdentifier(array(Group::PROP_ID => $groupID)); $contentHeader = $entityBuilder->getLabel(); $contentAction = 'Lista'; $contentHTML = $listViewAggregator->buildListHTML($isEmpty, false); ?> <!DOCTYPE html> <html> <?php require_once dirname(dirname(__FILE__)) . '/includes/head.php'; ?> <body class="custom-body"> <div id="wrapper"> <?php require_once dirname(dirname(__FILE__)) . '/includes/navigation.php'; ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12">