|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Description of ilDidacticTemplateImport. More...
Collaboration diagram for ilDidacticTemplateImport: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 = '' | |
| $logger = null | |
Description of ilDidacticTemplateImport.
Definition at line 12 of file class.ilDidacticTemplateImport.php.
| ilDidacticTemplateImport::__construct | ( | $a_type | ) |
Constructor.
| <type> | $a_type |
Definition at line 29 of file class.ilDidacticTemplateImport.php.
| ilDidacticTemplateImport::getInputFile | ( | ) |
Get inputfile.
Definition at line 50 of file class.ilDidacticTemplateImport.php.
References $xmlfile.
Referenced by import().
Here is the caller graph for this function:| ilDidacticTemplateImport::getInputType | ( | ) |
Get input type.
Definition at line 59 of file class.ilDidacticTemplateImport.php.
References $type.
Referenced by import().
Here is the caller graph for this function:| ilDidacticTemplateImport::import | ( | $a_dtpl_id = 0 | ) |
Do import.
Definition at line 67 of file class.ilDidacticTemplateImport.php.
References getInputFile(), getInputType(), IMPORT_FILE, parseActions(), parseSettings(), and parseXmlErrors().
Here is the call graph for this function:
|
protected |
Parse template action from xml.
| ilDidacticTemplateSetting | $set | |
| SimpleXMLElement | $root |
Definition at line 157 of file class.ilDidacticTemplateImport.php.
References $tpl, ilLogLevel\DEBUG, ilDidacticTemplateAction\FILTER_LOCAL_ROLES, ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse settings.
| SimpleXMLElement | $el |
Definition at line 94 of file class.ilDidacticTemplateImport.php.
References $DIC, $ilSetting, $tpl, ilMultilingualism\getInstance(), and ilDidacticTemplateSetting\TYPE_CREATION.
Referenced by import().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse xml errors from libxml_get_errors.
Definition at line 316 of file class.ilDidacticTemplateImport.php.
References $errors.
Referenced by import().
Here is the caller graph for this function:| ilDidacticTemplateImport::setInputFile | ( | $a_file | ) |
Set input file.
| string | $a_file |
Definition at line 41 of file class.ilDidacticTemplateImport.php.
|
private |
Definition at line 22 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 import(), and ilDidacticTemplateSettingsGUI\importTemplate().