ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilNestedOrderingGUI Class Reference
+ Inheritance diagram for ilNestedOrderingGUI:
+ Collaboration diagram for ilNestedOrderingGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="", $graphical_output=false)
 Constructor.
 setInstanceId ($instanceId)
 getInstanceId ()
 setOrderingType ($a_ordering_type)
 getOrderingType ()
 setImagePath ($a_image_path)
 getImagePath ()
 setImagePathWeb ($a_image_path_web)
 getImagePathWeb ()
 setThumbPrefix ($a_thumb_prefix)
 getThumbPrefix ()
 setGraphicalOutput ($graphical_output)
 getGraphicalOutput ()
 setObjAnswersArray ($a_answers_array, $shuffle=false)
 renderBeginSortableContainer ()
 renderEndSortableContainer ()
 renderListItem ($cur_answer, $i)
 renderEndListItem ()
 renderBeginSubList ()
 renderEndSubList ()
 renderAnswerOutput ($text_value, $i)
 checkInput ()
 Check input, strip slashes etc.
 getHtml ($shuffle_depth=0)
 getSolutionHTML ($a_solution_array)
 setPerformJavascript ($a_bool)
 getPerformJavascript ()
- Public Member Functions inherited from ilNonEditableValueGUI
 setType ($a_type)
 Set Type.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setValue ($a_value)
 Set Value.
 getValue ()
 Get Value.
 render ()
 render
 insert (&$a_tpl)
 Insert property html.
 setValueByArray ($a_values)
 Set value by array.
 getTableFilterHTML ()
 Get HTML for table filter.
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively
 checkSubItemsInput ()
 Check SubItems.
 getSubForm ()
 Get sub form html.
 getItemByPostVar ($a_post_var)
 Get item by post var.
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
executeCommand ()
 Execute command.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 serializeData ()
 serialize data
 unserializeData ($a_data)
 unserialize data
 writeToSession ()
 Write to session.
 clearFromSession ()
 Clear session value.
 readFromSession ()
 Read from session.
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties)
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi.
 getMulti ()
 Get Multi.
 setMultiValues (array $a_values)
 Set multi values.
 getMultiValues ()
 Get multi values.
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g.

Data Fields

 $answers = array()
 $ordering_type = NULL
 $image_path = null
 $image_path_web = null
 $thumb_prefix = 'thumb.'

Protected Attributes

 $instanceId = 'default'
- Protected Attributes inherited from ilNonEditableValueGUI
 $type
 $value
 $title
 $info
 $section_icon
 $disable_escaping
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""
 $multi = false
 $multi_sortable = false
 $multi_addremove = true
 $multi_values

Private Attributes

 $perform_js = 1
 $graphical_output = FALSE

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 getMultiIconsHTML ()
 Get HTML for multiple value icons.

Detailed Description

Author
Nadia Ahmad nahma.nosp@m.d@da.nosp@m.tabay.nosp@m..de
Version
Id:

Definition at line 13 of file class.ilNestedOrderingGUI.php.

Constructor & Destructor Documentation

ilNestedOrderingGUI::__construct (   $a_title = "",
  $a_id = "",
  $a_disable_escaping = false 
)

Constructor.

Parameters

Reimplemented from ilNonEditableValueGUI.

Definition at line 27 of file class.ilNestedOrderingGUI.php.

References $graphical_output.

{
parent::__construct($a_title, $a_postvar);
$this->graphical_output = (bool)$graphical_output;
}

Member Function Documentation

ilNestedOrderingGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilNonEditableValueGUI.

Definition at line 247 of file class.ilNestedOrderingGUI.php.

{
return true;
}
ilNestedOrderingGUI::getGraphicalOutput ( )

Definition at line 100 of file class.ilNestedOrderingGUI.php.

References $graphical_output.

Referenced by renderListItem().

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getHtml (   $shuffle_depth = 0)

Definition at line 252 of file class.ilNestedOrderingGUI.php.

References $answers, $tpl, ilFormPropertyGUI\getDisabled(), getInstanceId(), getPerformJavascript(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), renderBeginSortableContainer(), renderBeginSubList(), renderEndListItem(), renderEndSortableContainer(), renderEndSubList(), and renderListItem().

{
$html_output = '';
$html_output .= $this->renderBeginSortableContainer();
$html_output .= $this->renderBeginSubList();
$i = 0;
if($shuffle_depth == 1)
{
// this is for output in test
foreach($this->answers as $cur_answer)
{
$html_output .= $this->renderListItem($cur_answer,$cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
}
}
else
{
$previous_depth = 0;
$tmp_array = $this->answers;
$tmp_array[count($tmp_array)]['ordering_depth'] = 'END_OF_LIST';
foreach($this->answers as $cur_answer)
{
$current_depth = $cur_answer['ordering_depth'];
$next_depth = $tmp_array[$i+1]['ordering_depth'];
if($next_depth == 'END_OF_LIST')
{
$next_depth = 0;
}
if($previous_depth == $current_depth)
{
// pcn = Previous, Current, Next -> Depth
// pcn: 000, 001, 110, 220
if($current_depth == $next_depth)
{
// (1) pcn: 000
// echo"(1)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
if($previous_depth == $next_depth)
{
// (8) pcn: 110
// echo"(8)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
else if($previous_depth > $next_depth)
{
// (12) pcn: 220
// echo"(12)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
}
}
else if($current_depth < $next_depth)
{
// (2) pcn: 001
// echo"(2)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderBeginSubList();
}
}
else if($previous_depth > $current_depth)
{
if($current_depth == $next_depth)
{
// (6) pcn: 100
// echo"(6)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
// (11) pcn: 210
// echo"(11)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
}
else if($current_depth < $next_depth)
{
if($previous_depth == $next_depth)
{
// (7) pcn: 101
// echo"(7)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderBeginSubList();
}
else if($previous_depth > $next_depth)
{
// (10) pcn: 201
// echo"(10)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndSubList();
}
$html_output .= $this->renderBeginSubList();
}
}
}
else if($previous_depth < $current_depth)
{
if($current_depth == $next_depth)
{
// (4) pcn: 011
// echo"(4)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
if($previous_depth == $next_depth)
{
// (3) pcn: 010,
// echo"(3)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
else if($previous_depth > $next_depth)
{
// (9) pcn: 120
// echo"(9)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
}
}
}
else if($current_depth < $next_depth)
{
// (5) pcn: 012
// echo"(5)";
$html_output .= $this->renderListItem($cur_answer, $cur_answer['random_id']);
$html_output .= $this->renderBeginSubList();
}
}
$previous_depth = $current_depth;
$i++;
}
}
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndSortableContainer();
include_once "Services/jQuery/classes/class.iljQueryUtil.php";
global $tpl;
if(!$this->getDisabled())
{
$tpl->addJavaScript( "./Services/jQuery/js/jquery.nestable.js" );
}
$js_output = '';
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_javascript.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->setCurrentBlock('js_include');
if(!$this->getDisabled())
{
$js_include_tpl->setVariable( 'PERFORM_JAVASCRIPT', $this->getPerformJavascript() );
}
else
{
$js_include_tpl->setVariable( 'PERFORM_JAVASCRIPT', false );
}
$js_include_tpl->setVariable( 'INSTANCE_ID', $this->getInstanceId() );
$js_include_tpl->setVariable('HTML_OUTPUT', $html_output);
$js_include_tpl->parseCurrentBlock();
return $js_include_tpl->get();
}

+ Here is the call graph for this function:

ilNestedOrderingGUI::getImagePath ( )

Definition at line 71 of file class.ilNestedOrderingGUI.php.

References $image_path.

Referenced by renderListItem().

{
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getImagePathWeb ( )

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

References $image_path_web.

Referenced by renderAnswerOutput().

{
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getInstanceId ( )

Definition at line 38 of file class.ilNestedOrderingGUI.php.

References $instanceId.

Referenced by getHtml(), and renderBeginSortableContainer().

{
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getOrderingType ( )

Definition at line 62 of file class.ilNestedOrderingGUI.php.

References $ordering_type.

Referenced by renderAnswerOutput().

{
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getPerformJavascript ( )

Definition at line 634 of file class.ilNestedOrderingGUI.php.

References $perform_js.

Referenced by getHtml(), and getSolutionHTML().

{
return (int)$this->perform_js;
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::getSolutionHTML (   $a_solution_array)

Definition at line 452 of file class.ilNestedOrderingGUI.php.

References $tpl, getPerformJavascript(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), renderBeginSortableContainer(), renderBeginSubList(), renderEndListItem(), renderEndSortableContainer(), renderEndSubList(), and renderListItem().

{
$html_output = '';
$html_output .= $this->renderBeginSortableContainer();
$html_output .= $this->renderBeginSubList();
$i = 0;
$previous_depth = 0;
$tmp_array = $a_solution_array;
$tmp_array[count($tmp_array)]['depth'] = 'END_OF_LIST';
foreach($a_solution_array as $cur_answer)
{
$current_depth = $cur_answer['depth'];
$next_depth = $tmp_array[$i+1]['depth'];
if($next_depth == 'END_OF_LIST')
{
$next_depth = 0;
}
if($previous_depth == $current_depth)
{
// pcn = Previous, Current, Next -> Depth
// pcn: 000, 001, 110, 220
if($current_depth == $next_depth)
{
// (1) pcn: 000
// echo"(1)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
if($previous_depth == $next_depth)
{
// (8) pcn: 110
// echo"(8)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
else if($previous_depth > $next_depth)
{
// (12) pcn: 220
// echo"(12)";
$html_output .= $this->renderListItem($cur_answer, $i);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
}
}
else if($current_depth < $next_depth)
{
// (2) pcn: 001
// echo"(2)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderBeginSubList();
}
}
else if($previous_depth > $current_depth)
{
if($current_depth == $next_depth)
{
// (6) pcn: 100
// echo"(6)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
// (11) pcn: 210
// echo"(11)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
}
else if($current_depth < $next_depth)
{
if($previous_depth == $next_depth)
{
// (7) pcn: 101
// echo"(7)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderBeginSubList();
}
else if($previous_depth > $next_depth)
{
// (10) pcn: 201
// echo"(10)";
$html_output .= $this->renderListItem($cur_answer, $i);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndSubList();
}
$html_output .= $this->renderBeginSubList();
}
}
}
else if($previous_depth < $current_depth)
{
if($current_depth == $next_depth)
{
// (4) pcn: 011
// echo"(4)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
}
else if($current_depth > $next_depth)
{
if($previous_depth == $next_depth)
{
// (3) pcn: 010,
// echo"(3)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndListItem();
}
else if($previous_depth > $next_depth)
{
// (9) pcn: 120
// echo"(9)";
$html_output .= $this->renderListItem($cur_answer, $i);
for($openlists = $next_depth; $openlists < $current_depth; $openlists++)
{
$html_output .= $this->renderEndListItem();
$html_output .= $this->renderEndSubList();
}
}
}
else if($current_depth < $next_depth)
{
// (5) pcn: 012
// echo"(5)";
$html_output .= $this->renderListItem($cur_answer, $i);
$html_output .= $this->renderBeginSubList();
}
}
$previous_depth = $current_depth;
$i++;
}
$html_output .= $this->renderEndSubList();
$html_output .= $this->renderEndSortableContainer();
// $js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_solution.html", TRUE, TRUE, "Modules/TestQuestionPool");
include_once "Services/jQuery/classes/class.iljQueryUtil.php";
global $tpl;
$tpl->addJavaScript("./Services/jQuery/js/jquery.nestable.js");
$js_output = '';
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_javascript.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->setCurrentBlock('js_include');
$js_include_tpl->setVariable('PERFORM_JAVASCRIPT', $this->getPerformJavascript());
$js_include_tpl->setVariable('HTML_OUTPUT', $html_output);
$js_include_tpl->parseCurrentBlock();
return $js_include_tpl->get();
}

+ Here is the call graph for this function:

ilNestedOrderingGUI::getThumbPrefix ( )

Definition at line 87 of file class.ilNestedOrderingGUI.php.

Referenced by renderAnswerOutput().

{
return 'thumb.';
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderAnswerOutput (   $text_value,
  $i 
)
Parameters
string$text_value
integer$i
Returns
string

Definition at line 209 of file class.ilNestedOrderingGUI.php.

References $lng, ilFormPropertyGUI\getFieldId(), getImagePathWeb(), getOrderingType(), ilFormPropertyGUI\getPostVar(), getThumbPrefix(), OQ_NESTED_PICTURES, OQ_NESTED_TERMS, and ilUtil\prepareFormOutput().

Referenced by renderListItem().

{
global $lng;
$input_tpl = new ilTemplate("tpl.prop_nestable_value.html", true, true, "Modules/TestQuestionPool");
if(strlen($text_value))
{
{
$input_tpl->setCurrentBlock('nested_terms');
$input_tpl->setVariable("VALUE", ilUtil::prepareFormOutput($text_value));
$input_tpl->setVariable("INPUT_POST_VAR", $this->getPostVar() . "[$i]");
$input_tpl->setVariable("NON_EDITABLE_ID", $this->getPostVar() . "[$i]");
$input_tpl->setVariable("HVALUE", ilUtil::prepareFormOutput($text_value));
$input_tpl->setVariable("ID", $this->getFieldId() . "[$i]");
}
else if($this->getOrderingType() == OQ_NESTED_PICTURES)
{
$input_tpl->setCurrentBlock('nested_pictures');
$thumbweb = $this->getImagePathWeb() . $this->getThumbPrefix() .$text_value;
$input_tpl->setVariable("PICTURE_HREF",$thumbweb);
$input_tpl->setVariable("THUMB_ALT", $lng->txt("thumbnail"));
$input_tpl->setVariable("THUMB_TITLE", $lng->txt("thumbnail"));
$input_tpl->setVariable("NON_EDITABLE_ID", $this->getPostVar() . "[$i]");
$input_tpl->setVariable("HVALUE", $text_value);
$input_tpl->setVariable("ID", $this->getFieldId() . "[$i]");
}
}
$input_tpl->parseCurrentBlock();
return $input_tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderBeginSortableContainer ( )

Definition at line 130 of file class.ilNestedOrderingGUI.php.

References getInstanceId().

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->setCurrentBlock('begin_sortablecontainer');
$js_include_tpl->setVariable('INSTANCE_ID', $this->getInstanceId());
$js_include_tpl->parseCurrentBlock();
return $js_include_tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderBeginSubList ( )

Definition at line 188 of file class.ilNestedOrderingGUI.php.

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->touchBlock('begin_sublist');
return $js_include_tpl->get();
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderEndListItem ( )

Definition at line 180 of file class.ilNestedOrderingGUI.php.

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->touchBlock('end_list_item');
return $js_include_tpl->get();
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderEndSortableContainer ( )

Definition at line 139 of file class.ilNestedOrderingGUI.php.

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->touchBlock('end_sortablecontainer');
return $js_include_tpl->get();
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderEndSubList ( )

Definition at line 196 of file class.ilNestedOrderingGUI.php.

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->touchBlock('end_sublist');
return $js_include_tpl->get();
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::renderListItem (   $cur_answer,
  $i 
)

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

References $lng, getGraphicalOutput(), getImagePath(), and renderAnswerOutput().

Referenced by getHtml(), and getSolutionHTML().

{
$js_include_tpl = new ilTemplate("tpl.il_as_qpl_nested_ordering_output_html.html", TRUE, TRUE, "Modules/TestQuestionPool");
$js_include_tpl->touchBlock('begin_list_item');
$js_include_tpl->setCurrentBlock('item_value');
$js_include_tpl->setVariable('LIST_ITEM_VALUE', $this->renderAnswerOutput($cur_answer['answertext'], $i));
$js_include_tpl->setVariable('LIST_ITEM_ID', $i);
if(isset($cur_answer['ok']) && $this->getGraphicalOutput() == true)
{
global $lng;
if($cur_answer['ok'] === true)
{
$icon_ok = ilUtil::getImagePath("icon_ok.png");
$text_ok = $lng->txt("answer_is_right");
}
else
{
$icon_ok = ilUtil::getImagePath("icon_not_ok.png");
$text_ok = $lng->txt("answer_is_wrong");
}
$js_include_tpl->setVariable('ICON_OK', $icon_ok);
$js_include_tpl->setVariable('TEXT_OK', $text_ok);
}
$js_include_tpl->parseCurrentBlock();
return $js_include_tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilNestedOrderingGUI::setGraphicalOutput (   $graphical_output)
Parameters
bool$graphical_output

Definition at line 95 of file class.ilNestedOrderingGUI.php.

References $graphical_output.

{
$this->graphical_output = $graphical_output;
}
ilNestedOrderingGUI::setImagePath (   $a_image_path)

Definition at line 67 of file class.ilNestedOrderingGUI.php.

{
$this->image_path = $a_image_path;
}
ilNestedOrderingGUI::setImagePathWeb (   $a_image_path_web)

Definition at line 75 of file class.ilNestedOrderingGUI.php.

{
$this->image_path_web = $a_image_path_web;
}
ilNestedOrderingGUI::setInstanceId (   $instanceId)

Definition at line 33 of file class.ilNestedOrderingGUI.php.

References $instanceId.

{
$this->instanceId = $instanceId;
}
ilNestedOrderingGUI::setObjAnswersArray (   $a_answers_array,
  $shuffle = false 
)

Definition at line 111 of file class.ilNestedOrderingGUI.php.

{
if($shuffle == true)
{
shuffle($a_answers_array);
}
$i = 0;
foreach($a_answers_array as $obj_answer)
{
$this->answers[$i]['random_id'] = $obj_answer->getRandomId();
$this->answers[$i]['answertext'] = (string)$obj_answer->getAnswertext();
$this->answers[$i]['answer_id'] = $obj_answer->getAnswerId();
$this->answers[$i]['ordering_depth'] = $obj_answer->getOrderingDepth();
$i++;
}
}
ilNestedOrderingGUI::setOrderingType (   $a_ordering_type)

Definition at line 58 of file class.ilNestedOrderingGUI.php.

Referenced by assOrderingQuestionGUI\populateAnswerSpecificFormPart().

{
$this->ordering_type = $a_ordering_type;
}

+ Here is the caller graph for this function:

ilNestedOrderingGUI::setPerformJavascript (   $a_bool)

Definition at line 629 of file class.ilNestedOrderingGUI.php.

{
$this->perform_js = $a_bool;
}
ilNestedOrderingGUI::setThumbPrefix (   $a_thumb_prefix)

Definition at line 83 of file class.ilNestedOrderingGUI.php.

{
$this->thumb_prefix = $a_thumb_prefix;
}

Field Documentation

ilNestedOrderingGUI::$answers = array()

Definition at line 17 of file class.ilNestedOrderingGUI.php.

Referenced by getHtml().

ilNestedOrderingGUI::$graphical_output = FALSE
private
ilNestedOrderingGUI::$image_path = null

Definition at line 19 of file class.ilNestedOrderingGUI.php.

Referenced by getImagePath().

ilNestedOrderingGUI::$image_path_web = null

Definition at line 20 of file class.ilNestedOrderingGUI.php.

Referenced by getImagePathWeb().

ilNestedOrderingGUI::$instanceId = 'default'
protected

Definition at line 15 of file class.ilNestedOrderingGUI.php.

Referenced by getInstanceId(), and setInstanceId().

ilNestedOrderingGUI::$ordering_type = NULL

Definition at line 18 of file class.ilNestedOrderingGUI.php.

Referenced by getOrderingType().

ilNestedOrderingGUI::$perform_js = 1
private

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

Referenced by getPerformJavascript().

ilNestedOrderingGUI::$thumb_prefix = 'thumb.'

Definition at line 21 of file class.ilNestedOrderingGUI.php.


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