|
ILIAS
Release_4_2_x_branch Revision 61807
|
Description of ilDidacticTemplateImport. More...
Collaboration diagram for ilDidacticTemplateImport:Public Member Functions | |
| __construct ($a_type) | |
| Constructor. | |
| setInputFile ($a_file) | |
| Set input file. | |
| getInputFile () | |
| Get inputfile. | |
| getInputType () | |
| Get input type. | |
| import () | |
| Do import. | |
Data Fields | |
| const | IMPORT_FILE = 1 |
Protected Member Functions | |
| parseSettings (SimpleXMLElement $root) | |
| Parse settings. | |
| parseActions (ilDidacticTemplateSetting $set, SimpleXMLElement $actions=NULL) | |
| Parse template action from xml. | |
| parseXmlErrors () | |
| Parse xml errors from libxml_get_errors. | |
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.
| ilDidacticTemplateImport::getInputFile | ( | ) |
Get inputfile.
Definition at line 42 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 51 of file class.ilDidacticTemplateImport.php.
References $type.
Referenced by import().
Here is the caller graph for this function:| ilDidacticTemplateImport::import | ( | ) |
Do import.
Definition at line 59 of file class.ilDidacticTemplateImport.php.
References getInputFile(), getInputType(), 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 131 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse settings.
| SimpleXMLElement | $el |
Definition at line 87 of file class.ilDidacticTemplateImport.php.
References $tpl, and ilDidacticTemplateSetting\TYPE_CREATION.
Referenced by import().
Here is the caller graph for this function:
|
protected |
Parse xml errors from libxml_get_errors.
Definition at line 274 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 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().