modules/UpgradeWizard/uw_ajax.php
Functions
ajaxSqlProgress(
$persistence, $sql, $type
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $persistence | ||
| $sql | ||
| $type |
commitAjaxFinalTouches(
array $persistence
)
:
arraydoes post-post-install stuff
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $persistence | array | persistence |
| Type | Description |
|---|---|
| array | persistence |
commitAjaxGetSqlErrors(
array $persistence
)
:
stringreturns 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
)
:
voidhandles post-install tasks
Parameters
| Name | Type | Description |
|---|---|---|
| $persistence |
commitAjaxPrepSql(
array $persistence
)
:
arrayparses the sql upgrade file for sequential querying
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $persistence | array | persistence |
| Type | Description |
|---|---|
| array | persistence |
commitAjaxRunSql(
array $persistence
)
:
arrayruns 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
)
:
arrayloads 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
)
:
stringchecks files for permissions
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $persistence | array | files Array of files with absolute paths |
| Type | Description |
|---|---|
| string | result of check |