modules/UpgradeWizard/uw_ajax.php
Functions
ajaxSqlProgress(
$persistence, $sql, $type
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$persistence | ||
$sql | ||
$type |
commitAjaxFinalTouches(
array $persistence
)
:
array
does post-post-install stuff
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array | persistence |
Type | Description |
---|---|
array | persistence |
commitAjaxGetSqlErrors(
array $persistence
)
:
string
returns errors found during SQL operations
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array | persistence |
Type | Description |
---|---|
string | Error message or empty string on success |
commitAjaxPostInstall(
$persistence
)
:
void
handles post-install tasks
Parameters
Name | Type | Description |
---|---|---|
$persistence |
commitAjaxPrepSql(
array $persistence
)
:
array
parses the sql upgrade file for sequential querying
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array | persistence |
Type | Description |
---|---|
array | persistence |
commitAjaxRunSql(
array $persistence
)
:
array
runs one line of sql
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array |
Type | Description |
---|---|
array | $persistence |
preflightCheckJsonFindUpgradeFiles(
$persistence
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$persistence |
preflightCheckJsonGetSchemaErrors(
$persistence
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$persistence |
preflightCheckJsonPrepSchemaCheck(
array $persistence, bool $preflight
=
true
)
:
array
loads the sql file into an array
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array | persistence |
$preflight | bool | preflight Flag to load for Preflight or Commit |
Type | Description |
---|---|
array | persistence |
systemCheckJsonCheckFiles(
array $persistence
)
:
string
checks files for permissions
Parameters
Returns
Name | Type | Description |
---|---|---|
$persistence | array | files Array of files with absolute paths |
Type | Description |
---|---|
string | result of check |