@@ -23,26 +23,26 @@ |
||
| 23 | 23 | |
| 24 | 24 | // Itereate through all the existing activity types |
| 25 | 25 | foreach ($activityTypes->getConstants() as $prop => $value) { |
| 26 | - $activityParameters = ActivityParameters::fromArray(array( |
|
| 27 | - "activity_type" => $value, |
|
| 28 | - "limit" => 2, |
|
| 29 | - "offset" => 0, |
|
| 30 | - "route_id" => $route_id |
|
| 31 | - )); |
|
| 26 | + $activityParameters = ActivityParameters::fromArray(array( |
|
| 27 | + "activity_type" => $value, |
|
| 28 | + "limit" => 2, |
|
| 29 | + "offset" => 0, |
|
| 30 | + "route_id" => $route_id |
|
| 31 | + )); |
|
| 32 | 32 | |
| 33 | - $activities = new ActivityParameters(); |
|
| 34 | - $results = $activities->searcActivities($activityParameters); |
|
| 33 | + $activities = new ActivityParameters(); |
|
| 34 | + $results = $activities->searcActivities($activityParameters); |
|
| 35 | 35 | |
| 36 | - if (!is_array($results) || !is_array($results['results']) || sizeof($results['results'])<1) { |
|
| 37 | - continue; |
|
| 38 | - } |
|
| 36 | + if (!is_array($results) || !is_array($results['results']) || sizeof($results['results'])<1) { |
|
| 37 | + continue; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - $count++; |
|
| 40 | + $count++; |
|
| 41 | 41 | |
| 42 | - foreach ($results as $key => $activity) { |
|
| 43 | - Route4Me::simplePrint($activity); |
|
| 44 | - echo "<br>"; |
|
| 45 | - } |
|
| 42 | + foreach ($results as $key => $activity) { |
|
| 43 | + Route4Me::simplePrint($activity); |
|
| 44 | + echo "<br>"; |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - echo "------------------- <br><br>"; |
|
| 47 | + echo "------------------- <br><br>"; |
|
| 48 | 48 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $route = new Route(); |
| 20 | 20 | $route_id = $route->getRandomRouteId(0, 10); |
| 21 | 21 | echo "route_id -> $route_id <br>"; |
| 22 | -$count=0; |
|
| 22 | +$count = 0; |
|
| 23 | 23 | |
| 24 | 24 | // Itereate through all the existing activity types |
| 25 | 25 | foreach ($activityTypes->getConstants() as $prop => $value) { |