Changeset 1254478
- Timestamp:
- 09/27/2015 01:32:33 PM (10 years ago)
- Location:
- knvb-api
- Files:
-
- 3 edited
- 2 copied
-
tags/1.9 (copied) (copied from knvb-api/trunk)
-
tags/1.9/knvb-client.php (modified) (1 diff)
-
tags/1.9/readme.txt (copied) (copied from knvb-api/trunk/readme.txt) (1 diff)
-
trunk/knvb-client.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
knvb-api/tags/1.9/knvb-client.php
r1254459 r1254478 60 60 61 61 if(isset($json_data) && property_exists($json_data, 'List')) { 62 usort($json_data->List, function($a, $b) {63 if(property_exists($a, 'Datum') && property_exists($a, 'Tijd') &&64 property_exists($b, 'Datum') && property_exists($b, 'Tijd') &&65 isset($a->Datum) && isset($a->Tijd) &&66 isset($b->Datum) && isset($b->Tijd)) {62 if(property_exists($json_data->List[0], 'Datum') && 63 property_exists($json_data->List[0], 'Tijd') && 64 isset($json_data->List[0]->Datum) && 65 isset($json_data->List[0]->Tijd)) { 66 usort($json_data->List, function($a, $b) { 67 67 $dt_a = str_replace('-', '', $a->Datum) . $a->Tijd; 68 68 $dt_b = str_replace('-', '', $b->Datum) . $b->Tijd; 69 69 70 70 return strcmp($dt_a, $dt_b); 71 } 72 } );71 }); 72 } 73 73 74 74 return $json_data->List; -
knvb-api/tags/1.9/readme.txt
r1254470 r1254478 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.3 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 9 9 This plugin can be used for Dutch football clubs with a WordPress wedsite and a API-key for the KNVB data-API: http://www.knvbdataservice.nl/ -
knvb-api/trunk/knvb-client.php
r1254459 r1254478 60 60 61 61 if(isset($json_data) && property_exists($json_data, 'List')) { 62 usort($json_data->List, function($a, $b) {63 if(property_exists($a, 'Datum') && property_exists($a, 'Tijd') &&64 property_exists($b, 'Datum') && property_exists($b, 'Tijd') &&65 isset($a->Datum) && isset($a->Tijd) &&66 isset($b->Datum) && isset($b->Tijd)) {62 if(property_exists($json_data->List[0], 'Datum') && 63 property_exists($json_data->List[0], 'Tijd') && 64 isset($json_data->List[0]->Datum) && 65 isset($json_data->List[0]->Tijd)) { 66 usort($json_data->List, function($a, $b) { 67 67 $dt_a = str_replace('-', '', $a->Datum) . $a->Tijd; 68 68 $dt_b = str_replace('-', '', $b->Datum) . $b->Tijd; 69 69 70 70 return strcmp($dt_a, $dt_b); 71 } 72 } );71 }); 72 } 73 73 74 74 return $json_data->List; -
knvb-api/trunk/readme.txt
r1254470 r1254478 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.3 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 9 9 This plugin can be used for Dutch football clubs with a WordPress wedsite and a API-key for the KNVB data-API: http://www.knvbdataservice.nl/
Note: See TracChangeset
for help on using the changeset viewer.