@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
26 | - "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
27 | - "territory_color" => "ff7700", |
|
28 | - "territory" => $territoryParams |
|
26 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
27 | + "territory_color" => "ff7700", |
|
28 | + "territory" => $territoryParams |
|
29 | 29 | )); |
30 | 30 | |
31 | 31 | $result = (array)$territory->addTerritory($TerritoryParameters); |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | |
39 | 39 | // Update territory |
40 | 40 | $territoryParameters = array ( |
41 | - "type" => TerritoryTypes::RECT, |
|
42 | - "data" => array( |
|
43 | - "29.6600127358956,-95.6593322753906", |
|
44 | - "29.8966150753098,-95.3146362304688" |
|
45 | - ) |
|
41 | + "type" => TerritoryTypes::RECT, |
|
42 | + "data" => array( |
|
43 | + "29.6600127358956,-95.6593322753906", |
|
44 | + "29.8966150753098,-95.3146362304688" |
|
45 | + ) |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | $TerritoryParameters = Territory::fromArray(array( |
49 | - "territory_id" => $territory_id, |
|
50 | - "territory_name" => "Test Territory Updated as rectangle", |
|
51 | - "territory_color" => "ff5500", |
|
52 | - "territory" => $territoryParameters |
|
49 | + "territory_id" => $territory_id, |
|
50 | + "territory_name" => "Test Territory Updated as rectangle", |
|
51 | + "territory_color" => "ff5500", |
|
52 | + "territory" => $territoryParameters |
|
53 | 53 | )); |
54 | 54 | |
55 | 55 | $result1 = $territory->updateTerritory($TerritoryParameters); |
@@ -16,21 +16,21 @@ |
||
16 | 16 | |
17 | 17 | $territoryParams['type'] = TerritoryTypes::POLY; |
18 | 18 | $territoryParams['data'] = array( |
19 | - "37.769752822786455,-77.67833251953125", |
|
20 | - "37.75886716305343,-77.68974800109863", |
|
21 | - "37.74763966054455,-77.6917221069336", |
|
22 | - "37.74655084306813,-77.68863220214844", |
|
23 | - "37.7502255383101,-77.68125076293945", |
|
24 | - "37.74797991274437,-77.67498512268066", |
|
25 | - "37.73327960206065,-77.6411678314209", |
|
26 | - "37.74430510679532,-77.63172645568848", |
|
27 | - "37.76641925847049,-77.66846199035645" |
|
19 | + "37.769752822786455,-77.67833251953125", |
|
20 | + "37.75886716305343,-77.68974800109863", |
|
21 | + "37.74763966054455,-77.6917221069336", |
|
22 | + "37.74655084306813,-77.68863220214844", |
|
23 | + "37.7502255383101,-77.68125076293945", |
|
24 | + "37.74797991274437,-77.67498512268066", |
|
25 | + "37.73327960206065,-77.6411678314209", |
|
26 | + "37.74430510679532,-77.63172645568848", |
|
27 | + "37.76641925847049,-77.66846199035645" |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $TerritoryParameters = Territory::fromArray(array( |
31 | - "territory_name" => "Test Polygonian Territory ".strval(rand(10000, 99999)), |
|
32 | - "territory_color" => "ff7700", |
|
33 | - "territory" => $territoryParams |
|
31 | + "territory_name" => "Test Polygonian Territory ".strval(rand(10000, 99999)), |
|
32 | + "territory_color" => "ff7700", |
|
33 | + "territory" => $territoryParams |
|
34 | 34 | )); |
35 | 35 | |
36 | 36 | $territory = new Territory(); |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
26 | - "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
27 | - "territory_color" => "ff7700", |
|
28 | - "territory" => $territoryParams |
|
26 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
27 | + "territory_color" => "ff7700", |
|
28 | + "territory" => $territoryParams |
|
29 | 29 | )); |
30 | 30 | |
31 | 31 | $territory = new Territory(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | echo "---------------------------------------------------------------<br><br>"; |
42 | 42 | |
43 | 43 | $params = array( |
44 | - "territory_id" => $territory_id |
|
44 | + "territory_id" => $territory_id |
|
45 | 45 | ); |
46 | 46 | |
47 | 47 | $result1 = $territory->getTerritory($params); |
@@ -14,14 +14,14 @@ |
||
14 | 14 | |
15 | 15 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
16 | 16 | $territoryParams['data'] = array( |
17 | - "37.569752822786455,-77.47833251953125", |
|
18 | - "5000" |
|
17 | + "37.569752822786455,-77.47833251953125", |
|
18 | + "5000" |
|
19 | 19 | ); |
20 | 20 | |
21 | 21 | $TerritoryParameters = Territory::fromArray(array( |
22 | - "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
23 | - "territory_color" => "ff7700", |
|
24 | - "territory" => $territoryParams |
|
22 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
23 | + "territory_color" => "ff7700", |
|
24 | + "territory" => $territoryParams |
|
25 | 25 | )); |
26 | 26 | |
27 | 27 | $territory = new Territory(); |