class HomeAdminController extends BaseAdminController

The HomeAdminController class is the controller that display the administration interface homepage.

Properties

ControllersHelper $helper from BaseAdminController
string $databasesDir from BaseAdminController
string $simulatorsDir from BaseAdminController
string $publicDir from BaseAdminController
string $viewsDir from BaseAdminController
private SimpleXMLElement $datasources

Methods

Response
errorResponse(array $form, string $error)

Returns a JSON response formed with the data of a form and an error message.

zip(array $contents)

Zip file creation function.

int
unix2DosTime(int $unixtime)

Converts unix time to MS DOS time

Response
indexAction(Request $request)

Entry point of the root path /admin

Response
runIndex(Request $request)

Prepare the administration interface homepage and renders it.

Details

in BaseAdminController at line 93
protected Response errorResponse(array $form, string $error)

Returns a JSON response formed with the data of a form and an error message.

Parameters

array $form The form fields
string $error The error message

Return Value

Response

in BaseAdminController at line 113
protected zip(array $contents)

Zip file creation function.

Makes zip files. Derivated from PhpMyAdmin package The $contents parameter is an array of associative array where keys are : - name: name of the zip - modtime: modification time - data: data to compress

Parameters

array $contents The array of contents to be compressed

See also

Official ZIP file format: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

in BaseAdminController at line 188
protected int unix2DosTime(int $unixtime)

Converts unix time to MS DOS time

Parameters

int $unixtime (default: 0) The unix time

Return Value

int The MS DOS time

at line 64
Response indexAction(Request $request)

Entry point of the root path /admin

Parameters

Request $request The request

Return Value

Response The administration interface homepage in a Response object

at line 78
protected Response runIndex(Request $request)

Prepare the administration interface homepage and renders it.

Parameters

Request $request The request

Return Value

Response The administration interface homepage in a Response object