|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 168 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(), IMPORT_FILE, parseActions(), parseSettings(), and parseXmlErrors().
Referenced by ilDidacticTemplateSettingsGUI\importTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse template action from xml.
Definition at line 309 of file class.ilDidacticTemplateImport.php.
Referenced by import().
Here is the caller graph for this function:
|
protected |
Definition at line 197 of file class.ilDidacticTemplateImport.php.
References ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, and ilDidacticTemplateFilterPattern\PATTERN_SUBTYPE_REGEX.
|
protected |
Definition at line 235 of file class.ilDidacticTemplateImport.php.
References ilLogLevel\DEBUG, ilDidacticTemplateAction\FILTER_LOCAL_ROLES, ilDidacticTemplateAction\FILTER_PARENT_ROLES, ilDidacticTemplateAction\FILTER_SOURCE_OBJ_ID, ilDidacticTemplateAction\FILTER_SOURCE_TITLE, ILIAS\Repository\logger(), and ilDidacticTemplateFilterPattern\PATTERN_SUBTYPE_REGEX.
Here is the call graph for this function:
|
protected |
Definition at line 179 of file class.ilDidacticTemplateImport.php.
References ROLE_FOLDER_ID.
|
protected |
Parse settings.
Definition at line 112 of file class.ilDidacticTemplateImport.php.
References $info, 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 333 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.
| ilDidacticTemplateImport::validateImportFile | ( | ) |
Definition at line 92 of file class.ilDidacticTemplateImport.php.
References ILIAS\Export\ImportStatus\FAILED, getInputFile(), and getInputType().
Here is the call 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 import(), and 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.