|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Description of ilDidacticTemplateImport. More...
Collaboration diagram for ilDidacticTemplateImport:Public Member Functions | |
| __construct (int $a_type) | |
| setInputFile (string $a_file) | |
| getInputFile () | |
| getInputType () | |
| import (int $a_dtpl_id=0) | |
| Do import. More... | |
| validateImportFile () | |
Data Fields | |
| const | IMPORT_FILE = 1 |
Protected Member Functions | |
| parseSettings (SimpleXMLElement $root) | |
| Parse settings. More... | |
| canUseIcons (ilDidacticTemplateSetting $setting) | |
| parseLocalRoleAction (ilDidacticTemplateSetting $didactic_template_setting, SimpleXMLElement $local_role_action) | |
| parseBlockRoleAction (ilDidacticTemplateSetting $didactic_template_setting, SimpleXMLElement $block_role_action) | |
| parseLocalPolicyAction (ilDidacticTemplateSetting $didactic_template_setting, SimpleXMLElement $local_policy_action) | |
| parseActions (ilDidacticTemplateSetting $set, SimpleXMLElement $actions=null) | |
| Parse template action from xml. More... | |
| parseXmlErrors () | |
| Parse xml errors from libxml_get_errors. More... | |
Protected Attributes | |
| const | XML_ELEMENT_NAME_LOCAL_ROLE_ACTION = 'localRoleAction' |
| const | XML_ELEMENT_NAME_BLOCK_ROLE_ACIONE = 'blockRoleAction' |
| const | XML_ELEMENT_NAME_LOCAL_POLICY_ACTION = 'localPolicyAction' |
| const | SCHEMA_TYPE = 'otpl' |
| int | $type = 0 |
| string | $xmlfile = '' |
| ilLogger | $logger |
| ilObjectDefinition | $objDefinition |
| ilSetting | $settings |
Description of ilDidacticTemplateImport.
Definition at line 31 of file class.ilDidacticTemplateImport.php.
| ilDidacticTemplateImport::__construct | ( | int | $a_type | ) |
Definition at line 45 of file class.ilDidacticTemplateImport.php.
References $DIC, ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Here is the call graph for this function:
|
protected |
Definition at line 169 of file class.ilDidacticTemplateImport.php.
References ilDidacticTemplateSetting\getAssignments().
Referenced by parseSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDidacticTemplateImport::getInputFile | ( | ) |
Definition at line 59 of file class.ilDidacticTemplateImport.php.
References $xmlfile.
Referenced by import(), and validateImportFile().
Here is the caller graph for this function:| ilDidacticTemplateImport::getInputType | ( | ) |
Definition at line 64 of file class.ilDidacticTemplateImport.php.
References $type.
Referenced by import(), and validateImportFile().
Here is the caller graph for this function:| ilDidacticTemplateImport::import | ( | int | $a_dtpl_id = 0 | ) |
Do import.
Definition at line 72 of file class.ilDidacticTemplateImport.php.
References $settings, getInputFile(), getInputType(), parseActions(), parseSettings(), and parseXmlErrors().
Here is the call graph for this function:
|
protected |
Parse template action from xml.
Definition at line 310 of file class.ilDidacticTemplateImport.php.
References parseBlockRoleAction(), parseLocalPolicyAction(), and parseLocalRoleAction().
Referenced by import().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 198 of file class.ilDidacticTemplateImport.php.
References ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, ilDidacticTemplateSetting\getId(), and ilDidacticTemplateFilterPattern\PATTERN_SUBTYPE_REGEX.
Referenced by parseActions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 236 of file class.ilDidacticTemplateImport.php.
References Vendor\Package\$e, ilLogLevel\DEBUG, ilDidacticTemplateSetting\delete(), ilDidacticTemplateAction\FILTER_LOCAL_ROLES, ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, ilDidacticTemplateSetting\getId(), ILIAS\Repository\logger(), ilDidacticTemplateFilterPattern\PATTERN_SUBTYPE_REGEX, ROLE_FOLDER_ID, ilDidacticTemplateLocalPolicyAction\TPL_ACTION_INTERSECT, ilDidacticTemplateLocalPolicyAction\TPL_ACTION_OVERWRITE, and ilDidacticTemplateLocalPolicyAction\TPL_ACTION_UNION.
Referenced by parseActions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 180 of file class.ilDidacticTemplateImport.php.
References ilDidacticTemplateSetting\getId(), and ROLE_FOLDER_ID.
Referenced by parseActions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse settings.
Definition at line 113 of file class.ilDidacticTemplateImport.php.
References canUseIcons(), ilMultilingualism\getInstance(), ILIAS\Repository\int(), 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 334 of file class.ilDidacticTemplateImport.php.
Referenced by import().
Here is the caller graph for this function:| ilDidacticTemplateImport::setInputFile | ( | string | $a_file | ) |
Definition at line 54 of file class.ilDidacticTemplateImport.php.
Referenced by ilDidacticTemplateSettingsGUI\checkInput().
Here is the caller graph for this function:| ilDidacticTemplateImport::validateImportFile | ( | ) |
Definition at line 92 of file class.ilDidacticTemplateImport.php.
References ILIAS\Export\ImportStatus\FAILED, getInputFile(), and getInputType().
Referenced by ilDidacticTemplateSettingsGUI\checkInput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 41 of file class.ilDidacticTemplateImport.php.
|
protected |
Definition at line 42 of file class.ilDidacticTemplateImport.php.
|
protected |
Definition at line 43 of file class.ilDidacticTemplateImport.php.
Referenced by import().
|
protected |
Definition at line 39 of file class.ilDidacticTemplateImport.php.
Referenced by getInputType().
|
protected |
Definition at line 40 of file class.ilDidacticTemplateImport.php.
Referenced by getInputFile().
| const ilDidacticTemplateImport::IMPORT_FILE = 1 |
Definition at line 36 of file class.ilDidacticTemplateImport.php.
Referenced by ilDidacticTemplateSettingsGUI\importTemplate().
|
protected |
Definition at line 37 of file class.ilDidacticTemplateImport.php.
|
protected |
Definition at line 34 of file class.ilDidacticTemplateImport.php.
|
protected |
Definition at line 35 of file class.ilDidacticTemplateImport.php.
|
protected |
Definition at line 33 of file class.ilDidacticTemplateImport.php.