| @@ 1891-1900 (lines=10) @@ | ||
| 1888 | * @param $listB |
|
| 1889 | * @return int |
|
| 1890 | */ |
|
| 1891 | public static function compareListUserCategory($listA, $listB) |
|
| 1892 | { |
|
| 1893 | if ($listA['title'] == $listB['title']) { |
|
| 1894 | return 0; |
|
| 1895 | } else if($listA['title'] > $listB['title']) { |
|
| 1896 | return 1; |
|
| 1897 | } else { |
|
| 1898 | return -1; |
|
| 1899 | } |
|
| 1900 | } |
|
| 1901 | ||
| 1902 | /** |
|
| 1903 | * @param $view |
|
| @@ 8048-8057 (lines=10) @@ | ||
| 8045 | * @param array $listB |
|
| 8046 | * @return int |
|
| 8047 | */ |
|
| 8048 | private static function compareCatSessionInfo($listA, $listB) |
|
| 8049 | { |
|
| 8050 | if ($listA['sessionName'] == $listB['sessionName']) { |
|
| 8051 | return 0; |
|
| 8052 | } else if($listA['sessionName'] > $listB['sessionName']) { |
|
| 8053 | return 1; |
|
| 8054 | } else { |
|
| 8055 | return -1; |
|
| 8056 | } |
|
| 8057 | } |
|
| 8058 | ||
| 8059 | /** |
|
| 8060 | * @param array $listA |
|
| @@ 8084-8093 (lines=10) @@ | ||
| 8081 | * @param array $listB |
|
| 8082 | * @return int |
|
| 8083 | */ |
|
| 8084 | private static function compareByUserCourseCat($listA, $listB) |
|
| 8085 | { |
|
| 8086 | if ($listA['courseInUserCategoryTitle'] == $listB['courseInUserCategoryTitle']) { |
|
| 8087 | return 0; |
|
| 8088 | } else if($listA['courseInUserCategoryTitle'] > $listB['courseInUserCategoryTitle']) { |
|
| 8089 | return 1; |
|
| 8090 | } else { |
|
| 8091 | return -1; |
|
| 8092 | } |
|
| 8093 | } |
|
| 8094 | ||
| 8095 | /** |
|
| 8096 | * @param array $listA |
|
| @@ 8100-8109 (lines=10) @@ | ||
| 8097 | * @param array $listB |
|
| 8098 | * @return int |
|
| 8099 | */ |
|
| 8100 | private static function compareByCourse($listA, $listB) |
|
| 8101 | { |
|
| 8102 | if ($listA['title'] == $listB['title']) { |
|
| 8103 | return 0; |
|
| 8104 | } else if($listA['title'] > $listB['title']) { |
|
| 8105 | return 1; |
|
| 8106 | } else { |
|
| 8107 | return -1; |
|
| 8108 | } |
|
| 8109 | } |
|
| 8110 | ||
| 8111 | /** |
|
| 8112 | * Return HTML code for displaying session_course_for_coach |
|