| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Lang import controller
| Copyright: | 2014 Dan Poltawski <dan@moodle.com> |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 211 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
controller:: (5 methods):
__construct()
install_languagepacks()
uninstall_language()
update_all_installed_languages()
is_installed_lang()
Class: controller - X-Ref
Lang import controller| __construct() X-Ref |
| Constructor. |
| install_languagepacks($langs, $updating = false) X-Ref |
| Install language packs provided param: string|array $langs array of langcodes or individual langcodes param: bool $updating true if updating the langpacks return: int false if an error encountered or |
| uninstall_language($lang) X-Ref |
| Uninstall language pack param: string $lang language code return: bool true if language succesfull installed |
| update_all_installed_languages() X-Ref |
| Updated all install language packs with the latest found on servre return: bool true if languages succesfully updated. |
| is_installed_lang($lang, $md5check) X-Ref |
| checks the md5 of the zip file, grabbed from download.moodle.org, against the md5 of the local language file from last update param: string $lang language code param: string $md5check md5 to check return: bool true if installed |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |