| @@ 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 |
|
| @@ 7985-7994 (lines=10) @@ | ||
| 7982 | * @param array $listB |
|
| 7983 | * @return int |
|
| 7984 | */ |
|
| 7985 | private static function compareCatSessionInfo($listA, $listB) |
|
| 7986 | { |
|
| 7987 | if ($listA['sessionName'] == $listB['sessionName']) { |
|
| 7988 | return 0; |
|
| 7989 | } else if($listA['sessionName'] > $listB['sessionName']) { |
|
| 7990 | return 1; |
|
| 7991 | } else { |
|
| 7992 | return -1; |
|
| 7993 | } |
|
| 7994 | } |
|
| 7995 | ||
| 7996 | /** |
|
| 7997 | * @param array $listA |
|
| @@ 8021-8030 (lines=10) @@ | ||
| 8018 | * @param array $listB |
|
| 8019 | * @return int |
|
| 8020 | */ |
|
| 8021 | private static function compareByUserCourseCat($listA, $listB) |
|
| 8022 | { |
|
| 8023 | if ($listA['courseInUserCategoryTitle'] == $listB['courseInUserCategoryTitle']) { |
|
| 8024 | return 0; |
|
| 8025 | } else if($listA['courseInUserCategoryTitle'] > $listB['courseInUserCategoryTitle']) { |
|
| 8026 | return 1; |
|
| 8027 | } else { |
|
| 8028 | return -1; |
|
| 8029 | } |
|
| 8030 | } |
|
| 8031 | ||
| 8032 | /** |
|
| 8033 | * @param array $listA |
|
| @@ 8037-8046 (lines=10) @@ | ||
| 8034 | * @param array $listB |
|
| 8035 | * @return int |
|
| 8036 | */ |
|
| 8037 | private static function compareByCourse($listA, $listB) |
|
| 8038 | { |
|
| 8039 | if ($listA['title'] == $listB['title']) { |
|
| 8040 | return 0; |
|
| 8041 | } else if($listA['title'] > $listB['title']) { |
|
| 8042 | return 1; |
|
| 8043 | } else { |
|
| 8044 | return -1; |
|
| 8045 | } |
|
| 8046 | } |
|
| 8047 | ||
| 8048 | /** |
|
| 8049 | * Return HTML code for displaying session_course_for_coach |
|