Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/tool/langimport/index.php File Reference

Go to the source code of this file.

Namespaces

namespace  tool

Enumerations

enum  INSTALLATION_OF_SELECTED_LANG
enum  DELETION_OF_SELECTED_LANG
enum  UPDATE_ALL_LANG

Functions

 is_installed_lang ($lang, $md5check)

Variables

if(empty($CFG->langotherroot)) $mode = optional_param('mode', 0, PARAM_INT)
 $pack = optional_param_array('pack', array(), PARAM_SAFEDIR)
 $uninstalllang = optional_param('uninstalllang', '', PARAM_LANG)
 $confirm = optional_param('confirm', 0, PARAM_BOOL)
 $purgecaches = optional_param('purgecaches', false, PARAM_BOOL)
 $notice_ok = array()
 $notice_error = array()
 $installedlangs = get_string_manager()->get_list_of_translations(true)
 $missingparents = array()
foreach($installedlangs as
$installedlang=> $unused) 
$installer = new lang_installer()
 $url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => DELETION_OF_SELECTED_LANG))
 if ($remote)
 $options = array()

Enumeration Type Documentation

Definition at line 63 of file index.php.

Definition at line 62 of file index.php.

Definition at line 64 of file index.php.


Function Documentation

is_installed_lang ( lang,
md5check 
)

checks the md5 of the zip file, grabbed from download.moodle.org, against the md5 of the local language file from last update

Parameters:
string$lang
string$md5check
Returns:
bool

Definition at line 346 of file index.php.


Variable Documentation

Definition at line 45 of file index.php.

$installedlangs = get_string_manager()->get_list_of_translations(true)

Definition at line 229 of file index.php.

foreach ($installedlangs as $installedlang=> $unused) $installer = new lang_installer()

Definition at line 242 of file index.php.

$missingparents = array()

Definition at line 231 of file index.php.

if (empty($CFG->langotherroot)) $mode = optional_param('mode', 0, PARAM_INT)

Definition at line 42 of file index.php.

$notice_error = array()

Definition at line 69 of file index.php.

$notice_ok = array()

Definition at line 68 of file index.php.

$options = array()

Definition at line 307 of file index.php.

Definition at line 43 of file index.php.

$purgecaches = optional_param('purgecaches', false, PARAM_BOOL)

Definition at line 46 of file index.php.

$uninstalllang = optional_param('uninstalllang', '', PARAM_LANG)

Definition at line 44 of file index.php.

$url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => DELETION_OF_SELECTED_LANG))

Definition at line 286 of file index.php.

foreach ($availablelangs as $alang) if(!empty($options))

Definition at line 298 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations