ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Description of ilDidacticTemplateImport. More...
Public Member Functions | |
__construct ($a_type) | |
Constructor. More... | |
setInputFile ($a_file) | |
Set input file. More... | |
getInputFile () | |
Get inputfile. More... | |
getInputType () | |
Get input type. More... | |
import ($a_dtpl_id=0) | |
Do import. More... | |
Data Fields | |
const | IMPORT_FILE = 1 |
Protected Member Functions | |
parseSettings (SimpleXMLElement $root) | |
Parse settings. More... | |
parseActions (ilDidacticTemplateSetting $set, SimpleXMLElement $actions=NULL) | |
Parse template action from xml. More... | |
parseXmlErrors () | |
Parse xml errors from libxml_get_errors. More... | |
Private Attributes | |
$type = 0 | |
$xmlfile = '' | |
Description of ilDidacticTemplateImport.
Definition at line 12 of file class.ilDidacticTemplateImport.php.
ilDidacticTemplateImport::__construct | ( | $a_type | ) |
Constructor.
<type> | $a_type |
Definition at line 24 of file class.ilDidacticTemplateImport.php.
References $a_type.
ilDidacticTemplateImport::getInputFile | ( | ) |
Get inputfile.
Definition at line 42 of file class.ilDidacticTemplateImport.php.
References $xmlfile.
Referenced by import().
ilDidacticTemplateImport::getInputType | ( | ) |
Get input type.
Definition at line 51 of file class.ilDidacticTemplateImport.php.
References $type.
Referenced by import().
ilDidacticTemplateImport::import | ( | $a_dtpl_id = 0 | ) |
Do import.
Definition at line 59 of file class.ilDidacticTemplateImport.php.
References getInputFile(), getInputType(), parseActions(), parseSettings(), and parseXmlErrors().
|
protected |
Parse template action from xml.
ilDidacticTemplateSetting | $set | |
SimpleXMLElement | $root |
Definition at line 158 of file class.ilDidacticTemplateImport.php.
References $tpl, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, ilDidacticTemplateSetting\getId(), ilDidacticTemplateFilterPattern\PATTERN_SUBTYPE_REGEX, ilDidacticTemplateLocalPolicyAction\TPL_ACTION_INTERSECT, ilDidacticTemplateLocalPolicyAction\TPL_ACTION_OVERWRITE, and ilDidacticTemplateLocalPolicyAction\TPL_ACTION_UNION.
Referenced by import().
|
protected |
Parse settings.
SimpleXMLElement | $el |
Definition at line 88 of file class.ilDidacticTemplateImport.php.
References $ilSetting, $info, $tpl, array, ilMultilingualism\getInstance(), and ilDidacticTemplateSetting\TYPE_CREATION.
Referenced by import().
|
protected |
Parse xml errors from libxml_get_errors.
Definition at line 301 of file class.ilDidacticTemplateImport.php.
References $errors.
Referenced by import().
ilDidacticTemplateImport::setInputFile | ( | $a_file | ) |
Set input file.
string | $a_file |
Definition at line 33 of file class.ilDidacticTemplateImport.php.
|
private |
Definition at line 16 of file class.ilDidacticTemplateImport.php.
Referenced by getInputType().
|
private |
Definition at line 17 of file class.ilDidacticTemplateImport.php.
Referenced by getInputFile().
const ilDidacticTemplateImport::IMPORT_FILE = 1 |
Definition at line 14 of file class.ilDidacticTemplateImport.php.
Referenced by ilDidacticTemplateSettingsGUI\importTemplate().