ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTaxonomy Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjTaxonomy:
+ Collaboration diagram for ilObjTaxonomy:

Public Member Functions

 __construct ($a_id=0)
 ilObjTaxonomy constructor. More...
 
 setSortingMode (int $a_val)
 
 getSortingMode ()
 
 setItemSorting (bool $a_val)
 
 getItemSorting ()
 
 getTree ()
 
 getNodeMapping ()
 
 cloneNodes (ilObjTaxonomy $a_new_obj, int $a_target_parent, int $a_source_parent)
 
- Public Member Functions inherited from ilObject2
 __construct (int $a_id=0, bool $a_reference=true)
 Constructor. More...
 
 read ()
 
 create (bool $a_clone_mode=false)
 
 update ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false)
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static loadLanguageModule ()
 
static saveUsage (int $a_tax_id, int $a_obj_id)
 
static getUsageOfObject (int $a_obj_id, bool $a_include_titles=false)
 
static deleteUsagesOfTaxonomy (int $a_id)
 
static getSubTreeItems (string $a_comp, int $a_obj_id, string $a_item_type, int $a_tax_id, $a_node)
 Get all assigned items under a node. More...
 
static lookupSortingMode (int $a_id)
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const SORT_ALPHABETICAL = 0
 
const SORT_MANUAL = 1
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 initType ()
 
 doCreate (bool $clone_mode=false)
 
 doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
 
 doDelete ()
 
 doRead ()
 
 doUpdate ()
 
- Protected Member Functions inherited from ilObject2
 initType ()
 
 doRead ()
 
 doCreate (bool $clone_mode=false)
 
 beforeCreate ()
 If overwritten this method should return true, there is currently no "abort" handling for cases where "false" is returned. More...
 
 doUpdate ()
 
 beforeUpdate ()
 
 doDelete ()
 
 beforeDelete ()
 
 doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
 
 beforeCloneObject ()
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Static Protected Member Functions

static lookup (string $a_field, int $a_id)
 

Protected Attributes

array $node_mapping = array()
 
bool $item_sorting = false
 
int $sorting_mode = self::SORT_ALPHABETICAL
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Taxonomy

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilObjTaxonomy.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjTaxonomy::__construct (   $a_id = 0)

ilObjTaxonomy constructor.

Parameters
int$a_id

Definition at line 36 of file class.ilObjTaxonomy.php.

37 {
38 global $DIC;
39
40 $this->db = $DIC->database();
41 $this->type = "tax";
42 parent::__construct($a_id, false);
43 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ cloneNodes()

ilObjTaxonomy::cloneNodes ( ilObjTaxonomy  $a_new_obj,
int  $a_target_parent,
int  $a_source_parent 
)

Definition at line 121 of file class.ilObjTaxonomy.php.

125 : void {
126 // get all childs
127 $nodes = $this->getTree()->getChilds($a_source_parent);
128 foreach ($nodes as $node) {
129 if ($node["type"] === "taxn") {
130 $tax_node = new ilTaxonomyNode($node["child"]);
131 $new_node = $tax_node->copy($a_new_obj->getId());
132
134 $a_new_obj->getId(),
135 $new_node,
136 $a_target_parent
137 );
138
139 $this->node_mapping[$node["child"]] = $new_node->getId();
140
141 // handle childs
142 $this->cloneNodes($a_new_obj, $new_node->getId(), $node["child"]);
143 }
144 }
145 }
cloneNodes(ilObjTaxonomy $a_new_obj, int $a_target_parent, int $a_source_parent)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static putInTree(int $a_tax_id, ilTaxonomyNode $a_node, int $a_parent_id=0, int $a_target_node_id=0, int $a_order_nr=0)

References cloneNodes(), ilObject\getId(), and ilTaxonomyNode\putInTree().

Referenced by cloneNodes(), and doCloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteUsagesOfTaxonomy()

static ilObjTaxonomy::deleteUsagesOfTaxonomy ( int  $a_id)
static

Definition at line 242 of file class.ilObjTaxonomy.php.

242 : void
243 {
244 global $DIC;
245
246 $ilDB = $DIC->database();
247
248 $ilDB->manipulate(
249 "DELETE FROM tax_usage WHERE " .
250 " tax_id = " . $ilDB->quote($a_id, "integer")
251 );
252 }

References $DIC, and $ilDB.

◆ doCloneObject()

ilObjTaxonomy::doCloneObject ( ilObject2  $new_obj,
int  $a_target_id,
?int  $a_copy_id = null 
)
protected

Reimplemented from ilObject2.

Definition at line 104 of file class.ilObjTaxonomy.php.

104 : void
105 {
106 assert($new_obj instanceof ilObjTaxonomy);
107 $new_obj->setTitle($this->getTitle());
108 $new_obj->setDescription($this->getDescription());
109 $new_obj->setSortingMode($this->getSortingMode());
110
111 $this->node_mapping = array();
112
113 $this->cloneNodes(
114 $new_obj,
115 $new_obj->getTree()->readRootId(),
116 $this->getTree()->readRootId()
117 );
118 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $title)
setDescription(string $description)

References cloneNodes(), ilObject\getDescription(), getSortingMode(), ilObject\getTitle(), ilObject\setDescription(), and ilObject\setTitle().

+ Here is the call graph for this function:

◆ doCreate()

ilObjTaxonomy::doCreate ( bool  $clone_mode = false)
protected

Reimplemented from ilObject2.

Definition at line 84 of file class.ilObjTaxonomy.php.

84 : void
85 {
87
88 // create tax data record
89 $ilDB->manipulate("INSERT INTO tax_data " .
90 "(id, sorting_mode, item_sorting) VALUES (" .
91 $ilDB->quote($this->getId(), "integer") . "," .
92 $ilDB->quote($this->getSortingMode(), "integer") . "," .
93 $ilDB->quote((int) $this->getItemSorting(), "integer") .
94 ")");
95 $node = new ilTaxonomyNode();
96 $node->setType(""); // empty type
97 $node->setTitle("Root node for taxonomy " . $this->getId());
98 $node->setTaxonomyId($this->getId());
99 $node->create();
100 $tax_tree = new ilTaxonomyTree($this->getId());
101 $tax_tree->addTree($this->getId(), $node->getId());
102 }
ilDBInterface $db
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilObject\$db, $ilDB, and ilObject\getId().

+ Here is the call graph for this function:

◆ doDelete()

ilObjTaxonomy::doDelete ( )
protected

Reimplemented from ilObject2.

Definition at line 147 of file class.ilObjTaxonomy.php.

147 : void
148 {
150
151 // delete usages
153
154 // get all nodes
155 $tree = $this->getTree();
156 $subtree = $tree->getSubTreeIds($tree->readRootId());
157 $subtree[] = $tree->readRootId();
158
159 // get root node data (important: must happen before we
160 // delete the nodes
161 $root_node_data = $tree->getNodeData($tree->readRootId());
162 foreach ($subtree as $node_id) {
163 // delete node (this also deletes its assignments)
164 $node = new ilTaxonomyNode($node_id);
165 $node->delete();
166 }
167
168 // delete the tree
169 $tree->deleteTree($root_node_data);
170
171 // delete taxonoymy properties record
172 $ilDB->manipulate(
173 "DELETE FROM tax_data WHERE " .
174 " id = " . $ilDB->quote($this->getId(), "integer")
175 );
176 }
static deleteUsagesOfTaxonomy(int $a_id)
ilTree $tree
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
getSubTreeIds(int $a_ref_id)
Get all ids of subnodes.
deleteTree(array $a_node)
delete node and the whole subtree under this node

References $ilDB, and ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ doRead()

ilObjTaxonomy::doRead ( )
protected

Reimplemented from ilObject2.

Definition at line 178 of file class.ilObjTaxonomy.php.

178 : void
179 {
181
182 $set = $ilDB->query(
183 "SELECT * FROM tax_data " .
184 " WHERE id = " . $ilDB->quote($this->getId(), "integer")
185 );
186 $rec = $ilDB->fetchAssoc($set);
187 $this->setSortingMode((int) $rec["sorting_mode"]);
188 $this->setItemSorting((bool) $rec["item_sorting"]);
189 }
setSortingMode(int $a_val)
setItemSorting(bool $a_val)

References $ilDB.

◆ doUpdate()

ilObjTaxonomy::doUpdate ( )
protected

Reimplemented from ilObject2.

Definition at line 191 of file class.ilObjTaxonomy.php.

191 : void
192 {
194
195 $ilDB->manipulate(
196 $t = "UPDATE tax_data SET " .
197 " sorting_mode = " . $ilDB->quote($this->getSortingMode(), "integer") . ", " .
198 " item_sorting = " . $ilDB->quote((int) $this->getItemSorting(), "integer") .
199 " WHERE id = " . $ilDB->quote($this->getId(), "integer")
200 );
201 }

References $ilDB.

◆ getItemSorting()

ilObjTaxonomy::getItemSorting ( )

Definition at line 65 of file class.ilObjTaxonomy.php.

65 : bool
66 {
68 }

References $item_sorting.

◆ getNodeMapping()

ilObjTaxonomy::getNodeMapping ( )

Definition at line 79 of file class.ilObjTaxonomy.php.

79 : array
80 {
82 }

References $node_mapping.

◆ getSortingMode()

ilObjTaxonomy::getSortingMode ( )

Definition at line 55 of file class.ilObjTaxonomy.php.

55 : int
56 {
58 }

References $sorting_mode.

Referenced by ilTaxonomyTableGUI\__construct(), doCloneObject(), and ilTestTaxonomyTree\initOrderedTreeIndex().

+ Here is the caller graph for this function:

◆ getSubTreeItems()

static ilObjTaxonomy::getSubTreeItems ( string  $a_comp,
int  $a_obj_id,
string  $a_item_type,
int  $a_tax_id,
  $a_node 
)
static

Get all assigned items under a node.

Parameters
string$a_comp
int$a_obj_id
string$a_item_type
int$a_tax_id
$a_node
Returns
array
Exceptions
ilTaxonomyException

Definition at line 264 of file class.ilObjTaxonomy.php.

270 : array {
271 $tree = new ilTaxonomyTree($a_tax_id);
272
273 $sub_nodes = $tree->getSubTreeIds($a_node);
274 $sub_nodes[] = $a_node;
275
276 $tn_ass = new ilTaxNodeAssignment($a_comp, $a_obj_id, $a_item_type, $a_tax_id);
277
278 return $tn_ass->getAssignmentsOfNode($sub_nodes);
279 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by ilTestRandomQuestionSetStagingPoolBuilder\buildCheap(), and ilGlossaryPresentationGUI\printView().

+ Here is the caller graph for this function:

◆ getTree()

ilObjTaxonomy::getTree ( )

Definition at line 70 of file class.ilObjTaxonomy.php.

71 {
72 if ($this->getId() > 0) {
73 return new ilTaxonomyTree($this->getId());
74 }
75 return null;
76 }

References ilObject\getId().

+ Here is the call graph for this function:

◆ getUsageOfObject()

static ilObjTaxonomy::getUsageOfObject ( int  $a_obj_id,
bool  $a_include_titles = false 
)
static
Parameters
int$a_obj_idobject id
bool$a_include_titlesinclude titles in array
Returns
array array of tax IDs or array of arrays with keys tax_id, title
Deprecated:
Use $DIC->taxonomy()->domain()->usage()->getUsageOfObject() instead

Definition at line 235 of file class.ilObjTaxonomy.php.

235 : array
236 {
237 global $DIC;
238 return $DIC->taxonomy()->internal()->domain()->usage()->getUsageOfObject($a_obj_id, $a_include_titles);
239 }

References $DIC.

Referenced by ilTaxonomyListTableGUI\__construct(), ilObjCategory\cloneDependencies(), ilObjCategory\delete(), assQuestion\deleteTaxonomyAssignments(), ilTestRandomQuestionSetConfigGUI\executeCommand(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ilQuestionPoolTaxonomiesDuplicator\getAllTaxonomiesForSourceObject(), ilObjTaxonomyGUI\getCurrentTaxonomyId(), ilTestQuestionPoolExporter\getDependingTaxonomyIds(), ilTestExporter\getDependingTaxonomyIds(), ilBulkEditQuestionsGUI\getFormTaxonomies(), ilTaxMDGUI\getSelectableTaxonomies(), ilObjCategoryGUI\getTaxonomiesForRefId(), ilObjGlossary\getTaxonomyId(), ilObjQuestionPool\getTaxonomyIds(), ILIAS\Test\Settings\ScoreReporting\SettingsScoringGUI\getTaxonomyOptions(), ilCategoryExporter\getXmlExportTailDependencies(), ilGlossaryExporter\getXmlExportTailDependencies(), ilObjTaxonomyGUI\listTaxonomies(), ilTestRandomQuestionSetStagingPoolBuilder\removeMirroredTaxonomies(), ilTestRandomQuestionSetConfigGUI\saveCreateSourcePoolDefinitionFormCmd(), ilTestRandomQuestionSetConfigGUI\saveEditSourcePoolDefinitionFormCmd(), ilTestRandomQuestionSetConfigGUI\showCreateSourcePoolDefinitionFormCmd(), ilTestRandomQuestionSetConfigGUI\showEditSourcePoolDefinitionFormCmd(), and ilBulkEditQuestionsGUI\storeTaxonomies().

+ Here is the caller graph for this function:

◆ initType()

ilObjTaxonomy::initType ( )
protected

Reimplemented from ilObject2.

Definition at line 45 of file class.ilObjTaxonomy.php.

45 : void
46 {
47 $this->type = "tax";
48 }

◆ loadLanguageModule()

static ilObjTaxonomy::loadLanguageModule ( )
static

Definition at line 203 of file class.ilObjTaxonomy.php.

203 : void
204 {
205 global $DIC;
206
207 $lng = $DIC->language();
208
209 $lng->loadLanguageModule("tax");
210 }
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng

References $DIC, and $lng.

◆ lookup()

static ilObjTaxonomy::lookup ( string  $a_field,
int  $a_id 
)
staticprotected

Definition at line 282 of file class.ilObjTaxonomy.php.

282 : string
283 {
284 global $DIC;
285
286 $ilDB = $DIC->database();
287
288 $set = $ilDB->query(
289 "SELECT " . $a_field . " FROM tax_data " .
290 " WHERE id = " . $ilDB->quote($a_id, "integer")
291 );
292 $rec = $ilDB->fetchAssoc($set);
293
294 return $rec[$a_field];
295 }

References $DIC, and $ilDB.

◆ lookupSortingMode()

static ilObjTaxonomy::lookupSortingMode ( int  $a_id)
static

Definition at line 297 of file class.ilObjTaxonomy.php.

297 : int
298 {
299 return (int) self::lookup("sorting_mode", $a_id);
300 }
static lookup(string $a_field, int $a_id)

Referenced by ilTaxonomyExplorerGUI\__construct().

+ Here is the caller graph for this function:

◆ saveUsage()

static ilObjTaxonomy::saveUsage ( int  $a_tax_id,
int  $a_obj_id 
)
static

Definition at line 212 of file class.ilObjTaxonomy.php.

212 : void
213 {
214 global $DIC;
215
216 $ilDB = $DIC->database();
217
218 if ($a_tax_id > 0 && $a_obj_id > 0) {
219 $ilDB->replace(
220 "tax_usage",
221 array("tax_id" => array("integer", $a_tax_id),
222 "obj_id" => array("integer", $a_obj_id)
223 ),
224 array()
225 );
226 }
227 }

References $DIC, and $ilDB.

Referenced by ilObjTaxonomyGUI\afterSave(), ilObjCategory\cloneDependencies(), ilObjGlossary\cloneObject(), ilQuestionPoolTaxonomiesDuplicator\duplicateTaxonomyFromPoolToTest(), ilCategoryImporter\finalProcessing(), ilGlossaryImporter\finalProcessing(), ilTestQuestionPoolImporter\finalProcessing(), and ilTestImporter\finalRandomTestTaxonomyProcessing().

+ Here is the caller graph for this function:

◆ setItemSorting()

ilObjTaxonomy::setItemSorting ( bool  $a_val)

Definition at line 60 of file class.ilObjTaxonomy.php.

60 : void
61 {
62 $this->item_sorting = $a_val;
63 }

◆ setSortingMode()

ilObjTaxonomy::setSortingMode ( int  $a_val)

Definition at line 50 of file class.ilObjTaxonomy.php.

50 : void
51 {
52 $this->sorting_mode = $a_val;
53 }

Field Documentation

◆ $item_sorting

bool ilObjTaxonomy::$item_sorting = false
protected

Definition at line 29 of file class.ilObjTaxonomy.php.

Referenced by getItemSorting().

◆ $node_mapping

array ilObjTaxonomy::$node_mapping = array()
protected

Definition at line 28 of file class.ilObjTaxonomy.php.

Referenced by getNodeMapping().

◆ $sorting_mode

int ilObjTaxonomy::$sorting_mode = self::SORT_ALPHABETICAL
protected

Definition at line 30 of file class.ilObjTaxonomy.php.

Referenced by getSortingMode().

◆ SORT_ALPHABETICAL

◆ SORT_MANUAL


The documentation for this class was generated from the following file: