php js css php js css

Changes

Changes to Page: placement-tests

219095
Yesterday 11:53pm
Wilkie, Natasha
Modified page
221020
Today 3:31am
Guevarra, Kim
Modified page
Can't Undo: This is the current version
Handle Child Routes:
Content:
Content Additional:
Id:
/placement-tests/
/placement-tests/
Title:
Placement Tests
Placement Tests
Css:

															

														
Js:

															

														
Php Source:
<?php

\Framework\Assets\JavaScript::includeJQuery(true);


function getLevelsForPlacement($iPlacementTestLevelId, $iPlacementTestSetId)
{
// Get level from the form submission
$arrPlacementLevel = \Components\AF\Courses\Configuration\Levels::get($iPlacementTestLevelId);

// But we must also check to ensure a more recent placement hasn't occurred
$arrLevels = \Components\AF\Students\Levels::historyGetCurrentLevelsForContact(\Components\Customers\Contacts::currentContactId());

foreach ($arrLevels as $arrHistoryLevel)
{
if ($arrHistoryLevel['level_id'] == $iPlacementTestLevelId)
{
if ($arrHistoryLevel['level_status'] == 'passed' && count($arrHistoryLevel['next_levels']))
{
return \Components\AF\Courses\Configuration\Levels::get($arrHistoryLevel['next_levels'][0]);
}

break;
}
}

return $arrPlacementLevel;

}

?>
<?php

\Framework\Assets\JavaScript::includeJQuery(true);


function getLevelsForPlacement($iPlacementTestLevelId, $iPlacementTestSetId)
{
// Get level from the form submission
$arrPlacementLevel = \Components\AF\Courses\Configuration\Levels::get($iPlacementTestLevelId);

// But we must also check to ensure a more recent placement hasn't occurred
$arrLevels = \Components\AF\Students\Levels::historyGetCurrentLevelsForContact(\Components\Customers\Contacts::currentContactId());

foreach ($arrLevels as $arrHistoryLevel)
{
if ($arrHistoryLevel['level_id'] == $iPlacementTestLevelId)
{
if ($arrHistoryLevel['level_status'] == 'passed' && count($arrHistoryLevel['next_levels']))
{
return \Components\AF\Courses\Configuration\Levels::get($arrHistoryLevel['next_levels'][0]);
}

break;
}
}

return $arrPlacementLevel;

}

?>
Search Title:

															

														
Search Title Prefix:

															

														
Search Description:

															

														
Search Keywords:

															

														
Search Noindex:
0
0
Search Nofollow:
0
0
Search Change Frequency:

															

														
Search Priority:
0.5
0.5
Search Canonical Override:

															

														
Is Offline:
0
0
Is Hidden In Navigation:
1
1
Is Hidden In Sitemap:
0
0
Security New:
0
0
Security Contact Mode:

															

														
Security Contact Squeeze Viewlimit:

															

														
Security Contact Require Login:

															

														
Security Contact Groups:

															

														
Security Condition Id:

															

														
Security Heading:

															

														
Security Description:

															

														
Other Fields:

															

														
Order:
Parent Id:
/
/
Contact Id:
0
0
Design Id:
0
0
Header Functions:

															

														
Header Category:

															

														
Is Domain:
0
0
Post Category Id:

															

														
Event Category: