void handleRequest(
$form
)
|
|
Parameters:
API Tags:
See: | GalleryController::handleRequest |
Redefinition of:
- GalleryController::handleRequest()
- Take the appropriate action based on the user input provided.
Callback method for updating the language settings while reporting progress.
Parameters:
array |
$form: |
the form values |
API Tags:
array _deleteLanguagePackages(
array
$deleteLanguages, array
$callback
)
|
|
Delete the requested language packages
Parameters:
array |
$deleteLanguages: |
list of packages to be deleted |
array |
$callback: |
progress notification callback |
API Tags:
Return: | GalleryStatus a status code int number of language packages deleted array string status messages indicating problems encounterd |
array _downloadAndInstallLanguagePackages(
array
$sourceFiles, array
$repositories,
&$callback, array
$callback
)
|
|
Download and install the language packages
Parameters:
array |
$sourceFiles: |
list of files that were downloaded |
array |
$repositories: |
an array of GalleryRepositories |
array |
$callback: |
progress notification callback |
|
&$callback: |
|
API Tags:
Return: | GalleryStatus a status code array string status messages indicating problems encounterd int count of packages installed |
array _getFormLanguages(
array
$form, array
$repositories
)
|
|
Parse the form and determine the locales that need to be installed or removed
Parameters:
array |
$form: |
the form values |
array |
$repositories: |
an array of GalleryRepositories |
API Tags:
Return: | GalleryStatus a status code array list of language packages to install array list of language packages to remove |
GalleryStatus _synchronizeLanguagesByLocale(
array
$installLanguages,
&$callback
)
|
|
Synchronize the active language packages with the newly downloaded packages
Parameters:
array |
$installLanguages: |
an array of locales that were installed. |
|
&$callback: |
|
API Tags:
array _updateGeneralSettings(
array
$form
)
|
|
Update the general settings (UseBrowserPref and default language)
Parameters:
array |
$form: |
the form values |
API Tags:
Return: | GalleryStatus a status code bool flag indicating that the settings were updated |