| @@ 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 |
|
| @@ 8020-8029 (lines=10) @@ | ||
| 8017 | * @param array $listB |
|
| 8018 | * @return int |
|
| 8019 | */ |
|
| 8020 | private static function compareCatSessionInfo($listA, $listB) |
|
| 8021 | { |
|
| 8022 | if ($listA['sessionName'] == $listB['sessionName']) { |
|
| 8023 | return 0; |
|
| 8024 | } else if($listA['sessionName'] > $listB['sessionName']) { |
|
| 8025 | return 1; |
|
| 8026 | } else { |
|
| 8027 | return -1; |
|
| 8028 | } |
|
| 8029 | } |
|
| 8030 | ||
| 8031 | /** |
|
| 8032 | * @param array $listA |
|
| @@ 8056-8065 (lines=10) @@ | ||
| 8053 | * @param array $listB |
|
| 8054 | * @return int |
|
| 8055 | */ |
|
| 8056 | private static function compareByUserCourseCat($listA, $listB) |
|
| 8057 | { |
|
| 8058 | if ($listA['courseInUserCategoryTitle'] == $listB['courseInUserCategoryTitle']) { |
|
| 8059 | return 0; |
|
| 8060 | } else if($listA['courseInUserCategoryTitle'] > $listB['courseInUserCategoryTitle']) { |
|
| 8061 | return 1; |
|
| 8062 | } else { |
|
| 8063 | return -1; |
|
| 8064 | } |
|
| 8065 | } |
|
| 8066 | ||
| 8067 | /** |
|
| 8068 | * @param array $listA |
|
| @@ 8072-8081 (lines=10) @@ | ||
| 8069 | * @param array $listB |
|
| 8070 | * @return int |
|
| 8071 | */ |
|
| 8072 | private static function compareByCourse($listA, $listB) |
|
| 8073 | { |
|
| 8074 | if ($listA['title'] == $listB['title']) { |
|
| 8075 | return 0; |
|
| 8076 | } else if($listA['title'] > $listB['title']) { |
|
| 8077 | return 1; |
|
| 8078 | } else { |
|
| 8079 | return -1; |
|
| 8080 | } |
|
| 8081 | } |
|
| 8082 | ||
| 8083 | /** |
|
| 8084 | * Return HTML code for displaying session_course_for_coach |
|