/**
 * @param EntityBuilderHelper $entityBuilder
 */
function buildCreateView($entityBuilder)
{
    $emptyEntityInstance = $entityBuilder->createEmpty();
    $formViewAggregator = new FormViewAggregator($emptyEntityInstance);
    $contentHeader = $entityBuilder->getLabel();
    $contentAction = 'Shto';
    $contentHTML = $formViewAggregator->buildEntityFormHTML();
    $GLOBALS[CONTENT_HEADER] = $contentHeader;
    $GLOBALS[CONTENT_ACTION] = $contentAction;
    $GLOBALS[CONTENT_HTML] = $contentHTML;
}
/**
 * @param EntityBuilderHelper $entityBuilder
 * @param array $identifier
 */
function buildEditView($entityBuilder, $identifier)
{
    $entityInstance = $entityBuilder->getByIdentifier($identifier);
    $formViewAggregator = new FormViewAggregator($entityInstance);
    $contentHeader = $entityBuilder->getLabel();
    $contentAction = 'Përditëso';
    $contentHTML = $formViewAggregator->buildEntityFormHTML();
    $GLOBALS[CONTENT_HEADER] = $contentHeader;
    $GLOBALS[CONTENT_ACTION] = $contentAction;
    $GLOBALS[CONTENT_HTML] = $contentHTML;
}
/**
 * @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);
}