ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAssQuestionRelatedNavigationBarGUI Class Reference
+ Collaboration diagram for ilAssQuestionRelatedNavigationBarGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilLanguage $lng)
 getHintListCmd ()
 setHintListCmd ($hintListCmd)
 getHintRequestCmd ()
 setHintRequestCmd ($hintRequestCmd)
 setHintRequestsExist ($hintRequestsExist)
 doesHintRequestsExist ()
 setHintRequestsPossible ($hintRequestsPossible)
 areHintRequestsPossible ()
 setHintProvidingEnabled ($hintProvidingEnabled)
 isHintProvidingEnabled ()
 setInstantResponseEnabled ($instantFeedbackEnabled)
 isInstantResponseEnabled ()
 setInstantResponseCmd ($instantResponseCmd)
 getInstantResponseCmd ()
 getHTML ()

Protected Attributes

 $ctrl
 $lng
 $instantResponseCmd
 $instantResponseEnabled
 $hintProvidingEnabled
 $hintRequestsPossible
 $hintRequestsExist
 $hintRequestCmd
 $hintListCmd

Detailed Description

Constructor & Destructor Documentation

ilAssQuestionRelatedNavigationBarGUI::__construct ( ilCtrl  $ctrl,
ilLanguage  $lng 
)

Definition at line 37 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $ctrl, and $lng.

{
$this->ctrl = $ctrl;
$this->lng = $lng;
}

Member Function Documentation

ilAssQuestionRelatedNavigationBarGUI::areHintRequestsPossible ( )

Definition at line 78 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintRequestsPossible.

Referenced by getHTML().

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::doesHintRequestsExist ( )

Definition at line 68 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintRequestsExist.

Referenced by getHTML().

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::getHintListCmd ( )

Definition at line 43 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintListCmd.

Referenced by getHTML().

{
}

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::getHintRequestCmd ( )

Definition at line 53 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintRequestCmd.

Referenced by getHTML().

{
}

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::getHTML ( )

Definition at line 113 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References areHintRequestsPossible(), doesHintRequestsExist(), getHintListCmd(), getHintRequestCmd(), getInstantResponseCmd(), isHintProvidingEnabled(), and isInstantResponseEnabled().

{
$navTpl = new ilTemplate('tpl.qst_question_related_navigation.html', true, true, 'Modules/TestQuestionPool');
$parseQuestionRelatedNavigation = false;
if( $this->isInstantResponseEnabled() )
{
$navTpl->setCurrentBlock("direct_feedback");
$navTpl->setVariable("CMD_SHOW_INSTANT_RESPONSE", $this->getInstantResponseCmd());
$navTpl->setVariable("TEXT_SHOW_INSTANT_RESPONSE", $this->lng->txt("check"));
$navTpl->parseCurrentBlock();
$parseQuestionRelatedNavigation = true;
}
if( $this->isHintProvidingEnabled() )
{
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintTracking.php';
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
if( $this->areHintRequestsPossible() )
{
if( $this->doesHintRequestsExist() )
{
$buttonText = $this->lng->txt("button_request_next_question_hint");
}
else
{
$buttonText = $this->lng->txt("button_request_question_hint");
}
$navTpl->setCurrentBlock("button_request_next_question_hint");
$navTpl->setVariable("CMD_REQUEST_NEXT_QUESTION_HINT", $this->getHintRequestCmd());
$navTpl->setVariable("TEXT_REQUEST_NEXT_QUESTION_HINT", $buttonText);
$navTpl->parseCurrentBlock();
$parseQuestionRelatedNavigation = true;
}
if( $this->doesHintRequestsExist() )
{
$navTpl->setCurrentBlock("button_show_requested_question_hints");
$navTpl->setVariable("CMD_SHOW_REQUESTED_QUESTION_HINTS", $this->getHintListCmd());
$navTpl->setVariable("TEXT_SHOW_REQUESTED_QUESTION_HINTS", $this->lng->txt("button_show_requested_question_hints"));
$navTpl->parseCurrentBlock();
$parseQuestionRelatedNavigation = true;
}
}
if( $parseQuestionRelatedNavigation )
{
$navTpl->setCurrentBlock("question_related_navigation");
$navTpl->parseCurrentBlock();
}
return $navTpl->get();
}

+ Here is the call graph for this function:

ilAssQuestionRelatedNavigationBarGUI::getInstantResponseCmd ( )

Definition at line 108 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseCmd.

Referenced by getHTML().

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::isHintProvidingEnabled ( )

Definition at line 88 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintProvidingEnabled.

Referenced by getHTML().

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::isInstantResponseEnabled ( )

Definition at line 98 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseEnabled.

Referenced by getHTML().

+ Here is the caller graph for this function:

ilAssQuestionRelatedNavigationBarGUI::setHintListCmd (   $hintListCmd)

Definition at line 48 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintListCmd.

{
$this->hintListCmd = $hintListCmd;
}
ilAssQuestionRelatedNavigationBarGUI::setHintProvidingEnabled (   $hintProvidingEnabled)

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

References $hintProvidingEnabled.

{
$this->hintProvidingEnabled = $hintProvidingEnabled;
}
ilAssQuestionRelatedNavigationBarGUI::setHintRequestCmd (   $hintRequestCmd)

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

References $hintRequestCmd.

{
$this->hintRequestCmd = $hintRequestCmd;
}
ilAssQuestionRelatedNavigationBarGUI::setHintRequestsExist (   $hintRequestsExist)

Definition at line 63 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintRequestsExist.

{
$this->hintRequestsExist = $hintRequestsExist;
}
ilAssQuestionRelatedNavigationBarGUI::setHintRequestsPossible (   $hintRequestsPossible)

Definition at line 73 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $hintRequestsPossible.

{
$this->hintRequestsPossible = $hintRequestsPossible;
}
ilAssQuestionRelatedNavigationBarGUI::setInstantResponseCmd (   $instantResponseCmd)

Definition at line 103 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

References $instantResponseCmd.

{
$this->instantResponseCmd = $instantResponseCmd;
}
ilAssQuestionRelatedNavigationBarGUI::setInstantResponseEnabled (   $instantFeedbackEnabled)

Definition at line 93 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

{
$this->instantResponseEnabled = $instantFeedbackEnabled;
}

Field Documentation

ilAssQuestionRelatedNavigationBarGUI::$ctrl
protected

Definition at line 16 of file class.ilAssQuestionRelatedNavigationBarGUI.php.

Referenced by __construct().

ilAssQuestionRelatedNavigationBarGUI::$hintListCmd
protected
ilAssQuestionRelatedNavigationBarGUI::$hintProvidingEnabled
protected
ilAssQuestionRelatedNavigationBarGUI::$hintRequestCmd
protected
ilAssQuestionRelatedNavigationBarGUI::$hintRequestsExist
protected
ilAssQuestionRelatedNavigationBarGUI::$hintRequestsPossible
protected
ilAssQuestionRelatedNavigationBarGUI::$instantResponseCmd
protected
ilAssQuestionRelatedNavigationBarGUI::$instantResponseEnabled
protected
ilAssQuestionRelatedNavigationBarGUI::$lng
protected

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

Referenced by __construct().


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