19 public function __construct($a_id = 0, $a_call_by_reference =
true)
23 $this->db = $DIC->database();
38 if (!parent::update()) {
61 public function delete()
64 if (!parent::delete()) {
92 if ($source_obj->getType() ==
"skll") {
93 if (
$tree->isInTree($source_obj->getId())) {
94 $node_data =
$tree->getNodeData($source_obj->getId());
97 if ($movecopy ==
"move") {
98 $parent_id =
$tree->getParentId($source_obj->getId());
99 $tree->deleteTree($node_data);
103 if (!
$tree->isInTree($source_obj->getId())) {
107 } elseif ($as_subitem) {
110 $childs =
$tree->getChildsByType($parent, array(
"skll",
"scat"));
111 if (count($childs) != 0) {
112 $target_pos = $childs[count($childs) - 1][
"obj_id"];
116 $parent = $target_parent;
120 $source_obj->getId(),
129 if ($source_obj->getType() ==
"scat") {
130 $source_node =
$tree->getNodeData($source_id);
131 $subnodes =
$tree->getSubtree($source_node);
134 foreach ($subnodes as $subnode) {
145 } elseif ($as_subitem) {
148 $childs =
$tree->getChilds($target_parent);
149 if (count($childs) != 0) {
150 $target_pos = $childs[count($childs) - 1][
"obj_id"];
155 if ($movecopy ==
"move") {
156 $tree->deleteTree($source_node);
159 if (!
$tree->isInTree($source_id)) {
160 $tree->insertNode($source_id, $target_parent, $target_pos);
163 if ($movecopy ==
"move") {
164 foreach ($subnodes as $node) {
165 if ($node[
"obj_id"] != $source_id) {
166 $tree->insertNode($node[
"obj_id"], $node[
"parent"]);
read()
read style folder data
executeDragDrop($source_id, $target_id, $first_child, $as_subitem=false, $movecopy="move")
Execute Drag Drop Action.
update()
update object data
static getInstance($a_id=0)
Skill management main application class.
__construct(Container $dic, ilPlugin $plugin)
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.