This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Accept an array of instances of | |
* MenuService. Each will process their | |
* input data then return their output | |
* data so the next instance can use | |
* the output data as their input data. | |
* When there is no instance left in | |
* the array, the last one shall be returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function setSort(array $items){ | |
$columnOrders = []; | |
foreach ($items as $item) { | |
$itemStartsWithAlpha = preg_match('/^\W[A-Za-z]*/', $item); | |
if (! $itemStartsWithAlpha) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace DeltaX\Aegis\ModelServices\GradesRegistry; | |
use DeltaX\Aegis\MenuServices\Checklist; | |
use Carbon\Carbon; | |
use DeltaX\Utilities as U; | |
class StudentChecklist extends Checklist { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* CourseEnrollmentEligibility | |
*/ | |
class CourseEnrollmentEligibility extends ModelService { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @yds = 2016; | |
SET @yde = 2016; | |
SET @type = 'Semester'; | |
SELECT | |
* | |
FROM | |
school_calendar | |
WHERE | |
part_number = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dummy= [ | |
'Alpha' => null, | |
'Beta' => null, | |
'Charlie' => null | |
]; | |
switch (gettype($dummy['Alpha'])) { | |
case 'array' : | |
echo 'Alpha, according to this switch statement, is Array'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dummy= [ | |
'Alpha' => null, | |
'Beta' => null, | |
'Charlie' => null | |
]; | |
switch ($dummy['Alpha']) { | |
case is_array($dummy['Alpha']) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* INVOLVED TABLES | |
* | |
* TABLE: students | |
* id | |
* user_id | |
* degree_id | |
* ... | |
* | |
* TABLE: degrees |