ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestFinalMarkLangVarBuilder Class Reference
+ 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

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

Constructor & Destructor Documentation

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

constructer

Parameters
boolean$passedStatus
boolean$obligationsAnsweredStatus
boolean$obligationsEnabled

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

References $obligationsAnsweredStatus, $obligationsEnabled, and $passedStatus.

{
$this->passedStatus = (bool)$passedStatus;
$this->obligationsAnsweredStatus = (bool)$obligationsAnsweredStatus;
$this->obligationsEnabled = (bool)$obligationsEnabled;
}

Member Function Documentation

ilTestFinalMarkLangVarBuilder::areObligationsEnabled ( )
private

getter for obligationsEnabled

Returns
boolean

Definition at line 101 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 161 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 81 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 140 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 124 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 61 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 91 of file class.ilTestFinalMarkLangVarBuilder.php.

References $obligationsAnsweredStatus.

{
$this->obligationsAnsweredStatus = $obligationsAnsweredStatus;
}
ilTestFinalMarkLangVarBuilder::setObligationsEnabled (   $obligationsEnabled)
private

setter for obligationsEnabled

Parameters
boolean$obligationsEnabled

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

References $obligationsEnabled.

{
$this->obligationsEnabled = $obligationsEnabled;
}
ilTestFinalMarkLangVarBuilder::setPassedStatus (   $passedStatus)
private

setter for passedStatus

Parameters
boolean$passedStatus

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

References $passedStatus.

{
$this->passedStatus = $passedStatus;
}

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: