4 require_once
'Services/Form/classes/class.ilIdentifiedMultiValuesInputGUI.php';
5 require_once
'Modules/Test/classes/inc.AssessmentConstants.php';
47 parent::__construct($a_title, $a_postvar);
49 require_once
'Services/Form/classes/class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php';
190 new ilTemplate(
'tpl.prop_nested_ordering_list.html',
true,
true,
'Services/Form')
201 $this->
getListTpl()->setCurrentBlock(
'list_container');
208 $this->
getListTpl()->setCurrentBlock(
'list_snippet');
217 $this->
getListTpl()->setCurrentBlock(
'item_value');
242 abstract protected function getItemHtml(
$value, $identifier, $position, $itemSubFieldPostVar, $itemSubFieldId);
246 $this->
getListTpl()->setCurrentBlock(
'begin_list_item');
247 $this->
getListTpl()->setVariable(
'LIST_ITEM_ID', $identifier);
255 $this->
getListTpl()->setCurrentBlock(
'end_list_item');
256 $this->
getListTpl()->touchBlock(
'end_list_item');
263 $this->
getListTpl()->setCurrentBlock(
'begin_sublist');
272 $this->
getListTpl()->setCurrentBlock(
'end_sublist');
303 $identifier =
$keys[$counter];
309 $curIndent = $nextIndent = 0;
312 if ($prevIndent == $curIndent) {
315 if ($curIndent == $nextIndent) {
321 } elseif ($curIndent > $nextIndent) {
322 if ($prevIndent == $nextIndent) {
332 } elseif ($prevIndent > $nextIndent) {
338 for ($openlists = $nextIndent; $openlists < $curIndent; $openlists++) {
344 } elseif ($curIndent < $nextIndent) {
351 } elseif ($prevIndent > $curIndent) {
352 if ($curIndent == $nextIndent) {
358 } elseif ($curIndent > $nextIndent) {
365 } elseif ($curIndent < $nextIndent) {
366 if ($prevIndent == $nextIndent) {
372 } elseif ($prevIndent > $nextIndent) {
377 for ($openlists = $nextIndent; $openlists < $curIndent; $openlists++) {
383 } elseif ($prevIndent < $curIndent) {
384 if ($curIndent == $nextIndent) {
390 } elseif ($curIndent > $nextIndent) {
391 if ($prevIndent == $nextIndent) {
399 } elseif ($prevIndent > $nextIndent) {
404 for ($openlists = $nextIndent; $openlists < $curIndent; $openlists++) {
409 } elseif ($curIndent < $nextIndent) {
418 $prevIndent = $curIndent;
429 $jsTpl =
new ilTemplate(
'tpl.prop_nested_ordering_js.html',
true,
true,
'Services/Form');
432 $jsTpl->setCurrentBlock(
'avoid_nesting');
433 $jsTpl->touchBlock(
'avoid_nesting');
434 $jsTpl->parseCurrentBlock();
437 $jsTpl->setCurrentBlock(
'nested_ordering_init');
443 $jsTpl->parseCurrentBlock();
445 return $jsTpl->get();
451 $this->
getGlobalTpl()->addCss(
'Services/Form/css/nested_ordering.css');
455 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
460 $this->
getGlobalTpl()->addJavaScript(
'./libs/bower/bower_components/nestable2/jquery.nestable.js');
special template class to simplify handling of ITX/PEAR
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.