public function getTimeLimits($testSession)
    {
        $seconds = null;

        if ($item = $testSession->getCurrentAssessmentItemRef()) {
            $seconds = $this->getPartTimeLimits($item);
        }

        if (!$seconds && $section = $testSession->getCurrentAssessmentSection()) {
            $seconds = $this->getPartTimeLimits($section);
        }

        if (!$seconds && $testPart = $testSession->getCurrentTestPart()) {
            $seconds = $this->getPartTimeLimits($testPart);
        }

        if (!$seconds && $assessmentTest = $testSession->getAssessmentTest()) {
            $seconds = $this->getPartTimeLimits($assessmentTest);
        }

        return $seconds;
    }
public function getTimeLimits($testSession)
    {
        $seconds = null;

        if ($item = $testSession->getCurrentAssessmentItemRef()) {
            $seconds = $this->getPartTimeLimits($item);
        }

        if (!$seconds && $section = $testSession->getCurrentAssessmentSection()) {
            $seconds = $this->getPartTimeLimits($section);
        }

        if (!$seconds && $testPart = $testSession->getCurrentTestPart()) {
            $seconds = $this->getPartTimeLimits($testPart);
        }

        if (!$seconds && $assessmentTest = $testSession->getAssessmentTest()) {
            $seconds = $this->getPartTimeLimits($assessmentTest);
        }

        return $seconds;
    }
public function getTimeLimits ( $ testSession ) { $ seconds = null ; if ( $ item = $ testSession -> getCurrentAssessmentItemRef ( ) ) { $ seconds = $ this -> getPartTimeLimits ( $ item ) ; } if ( ! $ seconds && $ section = $ testSession -> getCurrentAssessmentSection ( ) ) { $ seconds = $ this -> getPartTimeLimits ( $ section ) ; } if ( ! $ seconds && $ testPart = $ testSession -> getCurrentTestPart ( ) ) { $ seconds = $ this -> getPartTimeLimits ( $ testPart ) ; } if ( ! $ seconds && $ assessmentTest = $ testSession -> getAssessmentTest ( ) ) { $ seconds = $ this -> getPartTimeLimits ( $ assessmentTest ) ; } return $ seconds ; }
Gets the actual time limits for a test session
@param TestSession $testSession
@return int|null
Gets the actual time limits for a test session