VLAM Documentation

AssignmentController extends BaseController
in package

Class BaseController

BaseController provides a convenient place for loading components and performing functions that are needed by all your controllers. Extend this class in any new controllers: class Home extends BaseController

For security be sure to declare any new methods as protected or private.

Table of Contents

Properties

$assignmentEntry  : mixed
$assignmentEntryProperties  : mixed
$assignments  : mixed
$cases  : mixed
$data  : mixed
$helpers  : array<int, string>
An array of helpers to be loaded automatically upon class instantiation. These helpers will be available to all other controllers that extend BaseController.
$meetings  : mixed
$request  : CLIRequest|IncomingRequest
Instance of the main Request object.
$user  : mixed

Methods

__construct()  : mixed
add_entry()  : mixed
add_property()  : mixed
clear_entry_properties()  : mixed
delete_entry()  : mixed
delete_property()  : mixed
entries_save_order()  : mixed
get_live_route()  : mixed
get_properties()  : mixed
index()  : string
initController()  : void
mark_as_placeholder()  : mixed
properties_save_order()  : mixed
save()  : mixed
update_entry_name()  : mixed
update_entry_optional()  : mixed
update_entry_type()  : mixed
update_property()  : mixed
extractYouTubeID()  : mixed
get_sub_assignments()  : mixed

Properties

$helpers

An array of helpers to be loaded automatically upon class instantiation. These helpers will be available to all other controllers that extend BaseController.

protected array<int, string> $helpers = ['download', 'csrf', 'user', 'admin/header', 'admin/footer']

$request

Instance of the main Request object.

protected CLIRequest|IncomingRequest $request

Methods

add_entry()

public add_entry(mixed $assignment_id) : mixed
Parameters
$assignment_id : mixed

clear_entry_properties()

public clear_entry_properties(mixed $entry_id) : mixed
Parameters
$entry_id : mixed

delete_entry()

public delete_entry(mixed $assignment_id) : mixed
Parameters
$assignment_id : mixed

delete_property()

public delete_property(mixed $assignment_id, mixed $property_id) : mixed
Parameters
$assignment_id : mixed
$property_id : mixed

entries_save_order()

public entries_save_order(mixed $assignment_id) : mixed
Parameters
$assignment_id : mixed

get_live_route()

public get_live_route(string $route, mixed ...$args) : mixed
Parameters
$route : string
$args : mixed

get_properties()

public get_properties(mixed $assignment_id, mixed $entry_id) : mixed
Parameters
$assignment_id : mixed
$entry_id : mixed

index()

public index(mixed $assignment_id) : string
Parameters
$assignment_id : mixed
Return values
string

initController()

public initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger) : void
Parameters
$request : RequestInterface
$response : ResponseInterface
$logger : LoggerInterface

mark_as_placeholder()

public mark_as_placeholder(mixed $assignment_id, mixed $property_id) : mixed
Parameters
$assignment_id : mixed
$property_id : mixed

properties_save_order()

public properties_save_order(mixed $assignment_id) : mixed
Parameters
$assignment_id : mixed

update_property()

public update_property(mixed $assignment_id) : mixed
Parameters
$assignment_id : mixed

extractYouTubeID()

private extractYouTubeID(mixed $url) : mixed
Parameters
$url : mixed

get_sub_assignments()

private get_sub_assignments(mixed $assignment) : mixed
Parameters
$assignment : mixed

        
On this page

Search results