ILIAS
Release_4_2_x_branch Revision 61807
|
Description of ilDidacticTemplateImport. More...
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().
ilDidacticTemplateImport::getInputType | ( | ) |
Get input type.
Definition at line 51 of file class.ilDidacticTemplateImport.php.
References $type.
Referenced by import().
ilDidacticTemplateImport::import | ( | ) |
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 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().
|
protected |
Parse settings.
SimpleXMLElement | $el |
Definition at line 87 of file class.ilDidacticTemplateImport.php.
References $tpl, and ilDidacticTemplateSetting\TYPE_CREATION.
Referenced by import().
|
protected |
Parse xml errors from libxml_get_errors.
Definition at line 274 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().