phpDocumentor GalleryCore
UserInterface
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: AdminLanguageManagerController

Source Location: /modules/core/AdminLanguageManager.inc

Class AdminLanguageManagerController

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AdminRepositoryDownloadAndInstallController

AdminRepositoryDownloadAndInstallController::performDownloadAndInstallation()
Download specified packages to the local repository cache and perform installation.
AdminRepositoryDownloadAndInstallController::updatePluginStatus()
Update the repository index, and scan all installed plugins and update GalleryPluginPackageMap with a complete listing of everything that's installed.
AdminRepositoryDownloadAndInstallController::_countInstallActions()
Calculate the total number of actions for the progress notifications
AdminRepositoryDownloadAndInstallController::_createDownloadFileList()
Create a list of all the files that need to be downloaded
AdminRepositoryDownloadAndInstallController::_fetchPluginStatus()
Passthrough to GalleryCoreApi::fetchPluginStatus, used by test code to allow us to inject mock plugins.
AdminRepositoryDownloadAndInstallController::_synchronizeLanguages()
Synchronize the active language packages with the newly downloaded packages

Inherited From GalleryController

GalleryController::assertIsGenuineRequest()
Verifies the genuineness of the request
GalleryController::getItem()
Return the current item, as specified in the itemId request variable.
GalleryController::handleRequest()
Take the appropriate action based on the user input provided.
GalleryController::isAllowedInEmbedOnly()
Does this controller allow direct access even in embed-only mode?
GalleryController::isAllowedInMaintenance()
Does this controller allow access to non-admins when site is in maintenance mode?
GalleryController::loadController()
Load a controller
GalleryController::omitAuthTokenCheck()
Whether the controller opts-out from the framework's auth token check.
GalleryController::permissionCheck()
GalleryController::shouldSaveSession()
Should session be saved and session cookie sent when this controller is used?

[ Top ]
Method Summary
void   handleRequest()  
GalleryStatus   updateLanguageSettings()   Callback method for updating the language settings while reporting progress.
array   _deleteLanguagePackages()   Delete the requested language packages
array   _downloadAndInstallLanguagePackages()   Download and install the language packages
array   _getFormLanguages()   Parse the form and determine the locales that need to be installed or removed
GalleryStatus   _synchronizeLanguagesByLocale()   Synchronize the active language packages with the newly downloaded packages
array   _updateGeneralSettings()   Update the general settings (UseBrowserPref and default language)

[ Top ]
Methods
handleRequest  [line 43]

  void handleRequest( $form  )

Parameters:
   $form: 

API Tags:
See:  GalleryController::handleRequest


Redefinition of:
GalleryController::handleRequest()
Take the appropriate action based on the user input provided.

[ Top ]
updateLanguageSettings  [line 98]

  GalleryStatus updateLanguageSettings( array $form  )

Callback method for updating the language settings while reporting progress.

Parameters:
array   $form:  the form values

API Tags:
Return:  a status code


[ Top ]
_deleteLanguagePackages  [line 283]

  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


[ Top ]
_downloadAndInstallLanguagePackages  [line 326]

  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


[ Top ]
_getFormLanguages  [line 248]

  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


[ Top ]
_synchronizeLanguagesByLocale  [line 357]

  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:
Return:  a status code


[ Top ]
_updateGeneralSettings  [line 211]

  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


[ Top ]

Documentation generated on Fri, 08 Oct 2010 04:33:32 -0700 by phpDocumentor 1.3.0RC6