Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
tool_customlang\local\importer Class Reference

Class containing tha custom lang importer. More...

Public Member Functions

 __construct (string $lng, int $importmode=self::IMPORTALL)
 Constructor for the importer class.
 
 get_log ()
 Returns the last parse log.
 
 import (array $files)
 Import customlang files.
 

Public Attributes

int const IMPORTALL = 3
 imports all strings
 
int const IMPORTNEW = 1
 imports will only create new customizations
 
int const IMPORTUPDATE = 2
 imports will only update the current customizations
 

Protected Attributes

int $importmode
 the importation mode (new, update, all)
 
string $lng
 the language name
 

Detailed Description

Class containing tha custom lang importer.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_customlang\local\importer::__construct ( string $lng,
int $importmode = self::IMPORTALL )

Constructor for the importer class.

Parameters
string$lngthe current language to import.
int$importmodethe import method (IMPORTALL, IMPORTNEW, IMPORTUPDATE).

Member Function Documentation

◆ get_log()

tool_customlang\local\importer::get_log ( )

Returns the last parse log.

Return values
logstatus[]mlang logstatus with the messages

◆ import()

tool_customlang\local\importer::import ( array $files)

Import customlang files.

Parameters
stored_file[]$filesarray of files to import

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