serveit-ca / curastreamPlugin

Curastream
https://www.curastream.com
0 stars 0 forks source link

Add Functions to Program.php #10

Closed serveit-ca closed 6 years ago

serveit-ca commented 6 years ago

We want to add the following functions to the program.php page

getAllBodyParts() - This will return an associative array with the id being id and the name being the key. getAllInjuries() - This will return an associative array with the id being id and the name being the key. getAllSports() - This will return an associative array with the id being id and the name being the key. getAllOccuations() - This will return an associative array with the id being id and the name being the key. getAllSportsAndOccurations - This will return an associative array with the id being id and the name being the key. The tables which these are drawn from can be found in the filtering.php function file right now.

SideonDeaka commented 6 years ago

These have been done, tested and the ajax is in place. On custom 2 branch

serveit-ca commented 6 years ago

lets create a function which gets all programs where the state 0 - Not Staging and customProgram = 0