Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
AdminLanguagesHandler Class Reference
Inheritance diagram for AdminLanguagesHandler:
AdminHandler Handler PKPHandler

Public Member Functions

 _removeLocalesFromJournals (&$request)
 
 AdminLanguagesHandler ()
 
 downloadLocale ($args, &$request)
 
 installLocale ($args, &$request)
 
 languages ($args, &$request)
 
 reloadLocale ($args, &$request)
 
 saveLanguageSettings ($args, &$request)
 
 uninstallLocale ($args, &$request)
 
- Public Member Functions inherited from AdminHandler
 AdminHandler ()
 
 index ()
 
 setupTemplate ($subclass=false)
 
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 
 addPolicy (&$authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 authorize (&$request, &$args, $roleAssignments)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getLoginExemptions ()
 
getRangeInfo ($rangeName, $contextData=null)
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 hashPageContext ($contextData=array())
 
 index ()
 
 initialize (&$request, $args=null)
 
 PKPHandler ()
 
 setDispatcher (&$dispatcher)
 
 setId ($id)
 
 validate ($requiredContexts=null, $request=null)
 

Detailed Description

Handle requests for changing site language settings.

Definition at line 18 of file AdminLanguagesHandler.inc.php.

Member Function Documentation

AdminLanguagesHandler::_removeLocalesFromJournals ( $request)

Helper function to remove unsupported locales from journals.

Parameters
$requestobject

Definition at line 187 of file AdminLanguagesHandler.inc.php.

References DAORegistry\getDAO().

Referenced by saveLanguageSettings(), and uninstallLocale().

AdminLanguagesHandler::AdminLanguagesHandler ( )

Constructor

Definition at line 22 of file AdminLanguagesHandler.inc.php.

AdminLanguagesHandler::downloadLocale (   $args,
$request 
)

Download a locale from the PKP web site.

Parameters
$argsarray
$requestobject

Definition at line 216 of file AdminLanguagesHandler.inc.php.

References AdminHandler\setupTemplate(), and PKPHandler\validate().

AdminLanguagesHandler::installLocale (   $args,
$request 
)

Install a new locale.

Parameters
$argsarray
$requestobject

Definition at line 110 of file AdminLanguagesHandler.inc.php.

References DAORegistry\getDAO(), PKPLocale\installLocale(), PKPLocale\isLocaleValid(), and PKPHandler\validate().

AdminLanguagesHandler::languages (   $args,
$request 
)

Display form to modify site language settings.

Parameters
$argsarray
$requestobject

Definition at line 31 of file AdminLanguagesHandler.inc.php.

References PKPLocale\getAllLocales(), PKPLocale\isLocaleComplete(), AdminHandler\setupTemplate(), and PKPHandler\validate().

AdminLanguagesHandler::reloadLocale (   $args,
$request 
)

Reload data for an installed locale.

Parameters
$argsarray
$requestobject

Definition at line 170 of file AdminLanguagesHandler.inc.php.

References PKPLocale\reloadLocale(), and PKPHandler\validate().

AdminLanguagesHandler::saveLanguageSettings (   $args,
$request 
)

Update language settings.

Parameters
$argsarray
$requestobject

Definition at line 66 of file AdminLanguagesHandler.inc.php.

References _removeLocalesFromJournals(), DAORegistry\getDAO(), PKPLocale\isLocaleValid(), and PKPHandler\validate().

AdminLanguagesHandler::uninstallLocale (   $args,
$request 
)

Uninstall a locale

Parameters
$argsarray
$requestobject

Definition at line 139 of file AdminLanguagesHandler.inc.php.

References _removeLocalesFromJournals(), DAORegistry\getDAO(), PKPLocale\uninstallLocale(), and PKPHandler\validate().


The documentation for this class was generated from the following file: