ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Skill Data set class. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
setMode ($a_val) | |
Set mode. More... | |
getMode () | |
Get mode. More... | |
setSelectedNodes ($a_val) | |
Set export selected nodes. More... | |
getSelectedNodes () | |
Get export selected nodes. More... | |
setSelectedProfiles ($a_val) | |
Set selected profiles. More... | |
getSelectedProfiles () | |
Get selected profiles. More... | |
getSupportedVersions () | |
Get supported versions. More... | |
getXmlNamespace ($a_entity, $a_schema_version) | |
Get xml namespace. More... | |
readData ($a_entity, $a_version, $a_ids, $a_field="") | |
Read data. More... | |
importRecord ($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version) | |
Import record. More... | |
Public Member Functions inherited from ilDataSet | |
__construct () | |
Constructor. More... | |
init ($a_entity, $a_schema_version) | |
Init. More... | |
getSupportedVersions () | |
Get supported version. More... | |
readData ($a_entity, $a_version, $a_ids) | |
Read data from DB. More... | |
setExportDirectories ($a_relative, $a_absolute) | |
Set export directories. More... | |
setImportDirectory ($a_val) | |
Set import directory. More... | |
getImportDirectory () | |
Get import directory. More... | |
setDSPrefix ($a_val) | |
Set XML dataset namespace prefix. More... | |
getDSPrefix () | |
Get XML dataset namespace prefix. More... | |
getDSPrefixString () | |
getDirectDataFromQuery ($a_query, $a_convert_to_leading_upper=true, $a_set=true) | |
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract fields. More... | |
convertToLeadingUpper ($a_str) | |
Make xyz_abc a XyzAbc string. More... | |
getJsonRepresentation () | |
Get json representation. More... | |
getXmlRepresentation ($a_entity, $a_schema_version, $a_ids, $a_field="", $a_omit_header=false, $a_omit_types=false) | |
Get xml representation <dataset install_id="123" install_url="..."> <types entity="table_name" version="4.0.1"> <ftype name="field_1" type="text"> <ftype name="field_2" type="date"> <ftype name="field_3" type="integer"> </types> <types ...> ... More... | |
addRecordsXml ($a_writer, $a_prefixes, $a_entity, $a_schema_version, $a_ids, $a_field="") | |
Add records xml. More... | |
afterXmlRecordWriting ($a_entity, $a_version, $a_set) | |
After xml record writing hook record. More... | |
getNamespaces (&$namespaces, $a_entity, $a_schema_version) | |
Get xml namespaces. More... | |
getXmlRecord ($a_entity, $a_version, $a_set) | |
Get xml record for version. More... | |
getJsonRecord ($a_set) | |
Get json record for version. More... | |
getXmlTypes ($a_entity, $a_version) | |
Get xml types. More... | |
getJsonTypes ($a_entity, $a_version) | |
Get json types. More... | |
getXMLEntityName ($a_entity, $a_version) | |
Get entity name for xml (may be overwritten) More... | |
getXMLEntityTag ($a_entity, $a_schema_version) | |
Get entity tag. More... | |
getJsonEntityName ($a_entity, $a_version) | |
Get entity name for json (may be overwritten) More... | |
setImport ($a_val) | |
Set import object. More... | |
getImport () | |
Get import object. More... | |
setCurrentInstallationId ($a_val) | |
Set current installation id. More... | |
getCurrentInstallationId () | |
Get current installation id. More... | |
Data Fields | |
const | MODE_SKILLS = "" |
const | MODE_PROFILES = "prof" |
Data Fields inherited from ilDataSet | |
$dircnt | |
const | EXPORT_NO_INST_ID = 1 |
const | EXPORT_ID_ILIAS_LOCAL = 2 |
const | EXPORT_ID_ILIAS_LOCAL_INVALID = 3 |
const | EXPORT_ID_ILIAS_REMOTE = 4 |
const | EXPORT_ID_ILIAS_REMOTE_INVALID = 5 |
const | EXPORT_ID = 6 |
const | EXPORT_ID_INVALID = 7 |
Protected Member Functions | |
getTypes ($a_entity, $a_version) | |
Get field types for entity. More... | |
getDependencies ($a_entity, $a_version, $a_rec, $a_ids) | |
Determine the dependent sets of data. More... | |
Protected Member Functions inherited from ilDataSet | |
getTypes ($a_entity, $a_version) | |
Get (abstract) types for (abstract) field names. More... | |
getXmlNamespace ($a_entity, $a_schema_version) | |
Get xml namespace. More... | |
createObjectExportId ($a_type, $a_id) | |
Build ilias export id. More... | |
parseObjectExportId ($a_id, $a_fallback_id=NULL) | |
Parse export id. More... | |
Protected Attributes | |
$skill_tree | |
$init_order_nr | |
$selected_nodes = false | |
$selected_profiles = false | |
$mode = "" | |
Protected Attributes inherited from ilDataSet | |
$current_installation_id = "" | |
Skill Data set class.
This class implements the following entities:
Definition at line 20 of file class.ilSkillDataSet.php.
ilSkillDataSet::__construct | ( | ) |
Constructor.
Definition at line 37 of file class.ilSkillDataSet.php.
|
protected |
Determine the dependent sets of data.
Definition at line 375 of file class.ilSkillDataSet.php.
References $ilDB, $n, ilSkillTreeNode\_lookupType(), array, getMode(), getSelectedNodes(), and getSelectedProfiles().
ilSkillDataSet::getMode | ( | ) |
Get mode.
Definition at line 63 of file class.ilSkillDataSet.php.
References $mode.
Referenced by getDependencies(), and readData().
ilSkillDataSet::getSelectedNodes | ( | ) |
Get export selected nodes.
Definition at line 83 of file class.ilSkillDataSet.php.
References $selected_nodes.
Referenced by getDependencies().
ilSkillDataSet::getSelectedProfiles | ( | ) |
Get selected profiles.
Definition at line 103 of file class.ilSkillDataSet.php.
References $selected_profiles.
Referenced by getDependencies().
ilSkillDataSet::getSupportedVersions | ( | ) |
Get supported versions.
Definition at line 113 of file class.ilSkillDataSet.php.
References array.
|
protected |
Get field types for entity.
Definition at line 135 of file class.ilSkillDataSet.php.
References array.
ilSkillDataSet::getXmlNamespace | ( | $a_entity, | |
$a_schema_version | |||
) |
ilSkillDataSet::importRecord | ( | $a_entity, | |
$a_types, | |||
$a_rec, | |||
$a_mapping, | |||
$a_schema_version | |||
) |
Import record.
Definition at line 474 of file class.ilSkillDataSet.php.
References $l, $template_id, ilSkillTreeNode\_lookupType(), array, ilBasicSkill\getCommonSkillIdForImportId(), ilDataSet\getCurrentInstallationId(), ilBasicSkill\getLevelIdForImportId(), ilBasicSkill\lookupLevelSkillId(), ilSkillTreeNode\putInTree(), and ilSkillTreeNode\STATUS_DRAFT.
ilSkillDataSet::readData | ( | $a_entity, | |
$a_version, | |||
$a_ids, | |||
$a_field = "" |
|||
) |
Read data.
Definition at line 234 of file class.ilSkillDataSet.php.
References $ilDB, array, data, ilDataSet\getDirectDataFromQuery(), and getMode().
ilSkillDataSet::setMode | ( | $a_val | ) |
ilSkillDataSet::setSelectedNodes | ( | $a_val | ) |
Set export selected nodes.
array | $a_val | array of int |
Definition at line 73 of file class.ilSkillDataSet.php.
ilSkillDataSet::setSelectedProfiles | ( | $a_val | ) |
Set selected profiles.
array | $a_val | array of int (profile ids) |
Definition at line 93 of file class.ilSkillDataSet.php.
|
protected |
Definition at line 29 of file class.ilSkillDataSet.php.
|
protected |
Definition at line 32 of file class.ilSkillDataSet.php.
Referenced by getMode().
|
protected |
Definition at line 30 of file class.ilSkillDataSet.php.
Referenced by getSelectedNodes().
|
protected |
Definition at line 31 of file class.ilSkillDataSet.php.
Referenced by getSelectedProfiles().
|
protected |
Definition at line 28 of file class.ilSkillDataSet.php.
const ilSkillDataSet::MODE_PROFILES = "prof" |
Definition at line 23 of file class.ilSkillDataSet.php.
const ilSkillDataSet::MODE_SKILLS = "" |
Definition at line 22 of file class.ilSkillDataSet.php.