Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PKPLanguageAction Class Reference
Inheritance diagram for PKPLanguageAction:
LanguageAction

Public Member Functions

 downloadLocale ($locale, &$errors)
 
 getDownloadableLocales ()
 
 isDownloadAvailable ()
 
 PKPLanguageAction ()
 

Detailed Description

PKPLanguageAction class.

Definition at line 16 of file PKPLanguageAction.inc.php.

Member Function Documentation

PKPLanguageAction::downloadLocale (   $locale,
$errors 
)

Download and install a locale.

Parameters
$localestring
$errorsarray
Returns
boolean

Definition at line 82 of file PKPLanguageAction.inc.php.

References PKPLocale\getAllLocales(), DAORegistry\getDAO(), getDownloadableLocales(), Config\getVar(), and FileWrapper\wrapper().

PKPLanguageAction::getDownloadableLocales ( )

Get the list of locales that can be downloaded for the current version.

Definition at line 67 of file PKPLanguageAction.inc.php.

References DAORegistry\getDAO(), and PKPLocale\loadLocaleList().

Referenced by downloadLocale().

PKPLanguageAction::isDownloadAvailable ( )

Actions. Check to see whether the tar function exists and appears to be available for execution from PHP, and various other conditions that are required for locale downloading to be available.

Returns
boolean

Definition at line 33 of file PKPLanguageAction.inc.php.

References Config\getVar().

PKPLanguageAction::PKPLanguageAction ( )

Constructor

Definition at line 20 of file PKPLanguageAction.inc.php.


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