ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestFinalMarkLangVarBuilder Class Reference

builds the language variable identifier corresponding to the given passed status considering the given obligations answered status and the fact wether obligations are enabled or not in general More...

+ Collaboration diagram for ilTestFinalMarkLangVarBuilder:

Public Member Functions

 __construct ($passedStatus, $obligationsAnsweredStatus, $obligationsEnabled)
 constructer
 build ()
 builds the final statement language variable identifier based on "Passed-LangVar-Basename" and "Obligations-LangVar-Extension"

Private Member Functions

 getPassedStatus ()
 getter for passedStatus
 setPassedStatus ($passedStatus)
 setter for passedStatus
 getObligationsAnsweredStatus ()
 getter for obligationsAnsweredStatus
 setObligationsAnsweredStatus ($obligationsAnsweredStatus)
 setter for obligationsAnsweredStatus
 areObligationsEnabled ()
 getter for obligationsEnabled
 setObligationsEnabled ($obligationsEnabled)
 setter for obligationsEnabled
 getPassedLangVarBasename ()
 returns the final statement language variable identifier basename that regards to given passed status as well as to the fact wether obligations are answered or not if obligations are enabled in general
 getObligationsLangVarExtension ()
 returns the final statement language variable identifier extension that regards to the given obligations status if

Private Attributes

 $passedStatus = null
 $obligationsAnsweredStatus = null
 $obligationsEnabled = null

Detailed Description

builds the language variable identifier corresponding to the given passed status considering the given obligations answered status and the fact wether obligations are enabled or not in general

Author
Björn Heyser bheys.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
Id:
class.ilTestFinalMarkLangVarBuilder.php 44218 2013-08-16 08:36:24Z mbecker

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

Constructor & Destructor Documentation

ilTestFinalMarkLangVarBuilder::__construct (   $passedStatus,
  $obligationsAnsweredStatus,
  $obligationsEnabled 
)

constructer

Parameters
boolean$passedStatus
boolean$obligationsAnsweredStatus
boolean$obligationsEnabled

Definition at line 46 of file class.ilTestFinalMarkLangVarBuilder.php.

References $obligationsAnsweredStatus, $obligationsEnabled, $passedStatus, setObligationsAnsweredStatus(), setObligationsEnabled(), and setPassedStatus().

+ Here is the call graph for this function:

Member Function Documentation

ilTestFinalMarkLangVarBuilder::areObligationsEnabled ( )
private

getter for obligationsEnabled

Returns
boolean

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

References $obligationsEnabled.

Referenced by getObligationsLangVarExtension(), and getPassedLangVarBasename().

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::build ( )

builds the final statement language variable identifier based on "Passed-LangVar-Basename" and "Obligations-LangVar-Extension"

Returns
string

Definition at line 158 of file class.ilTestFinalMarkLangVarBuilder.php.

References getObligationsLangVarExtension(), and getPassedLangVarBasename().

{
$langVar = $this->getPassedLangVarBasename();
$langVar .= $this->getObligationsLangVarExtension();
return $langVar;
}

+ Here is the call graph for this function:

ilTestFinalMarkLangVarBuilder::getObligationsAnsweredStatus ( )
private

getter for obligationsAnsweredStatus

Returns
boolean

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

References $obligationsAnsweredStatus.

Referenced by getObligationsLangVarExtension(), and getPassedLangVarBasename().

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::getObligationsLangVarExtension ( )
private

returns the final statement language variable identifier extension that regards to the given obligations status if

Returns
type

Definition at line 137 of file class.ilTestFinalMarkLangVarBuilder.php.

References areObligationsEnabled(), and getObligationsAnsweredStatus().

Referenced by build().

{
{
return '_obligations_answered';
}
elseif( $this->areObligationsEnabled() && !$this->getObligationsAnsweredStatus() )
{
return '_obligations_missing';
}
return '';
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::getPassedLangVarBasename ( )
private

returns the final statement language variable identifier basename that regards to given passed status as well as to the fact wether obligations are answered or not if obligations are enabled in general

Returns
string

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

References areObligationsEnabled(), getObligationsAnsweredStatus(), and getPassedStatus().

Referenced by build().

{
if( $this->getPassedStatus() && (!$this->areObligationsEnabled() || $this->getObligationsAnsweredStatus()) )
{
return 'mark_tst_passed';
}
return 'mark_tst_failed';
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::getPassedStatus ( )
private

getter for passedStatus

Returns
boolean

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

References $passedStatus.

Referenced by getPassedLangVarBasename().

{
}

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::setObligationsAnsweredStatus (   $obligationsAnsweredStatus)
private

setter for obligationsAnsweredStatus

Parameters
boolean$obligationsAnsweredStatus

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

References $obligationsAnsweredStatus.

Referenced by __construct().

{
$this->obligationsAnsweredStatus = $obligationsAnsweredStatus;
}

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::setObligationsEnabled (   $obligationsEnabled)
private

setter for obligationsEnabled

Parameters
boolean$obligationsEnabled

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

References $obligationsEnabled.

Referenced by __construct().

{
$this->obligationsEnabled = $obligationsEnabled;
}

+ Here is the caller graph for this function:

ilTestFinalMarkLangVarBuilder::setPassedStatus (   $passedStatus)
private

setter for passedStatus

Parameters
boolean$passedStatus

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

References $passedStatus.

Referenced by __construct().

{
$this->passedStatus = $passedStatus;
}

+ Here is the caller graph for this function:

Field Documentation

ilTestFinalMarkLangVarBuilder::$obligationsAnsweredStatus = null
private
ilTestFinalMarkLangVarBuilder::$obligationsEnabled = null
private
ilTestFinalMarkLangVarBuilder::$passedStatus = null
private

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