forked from Nullpo/stoneSoup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pablo
committed
Jul 1, 2013
0 parents
commit deccf7b
Showing
23 changed files
with
931 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
function generateMocks(){ | ||
$mocks = Config::get()->talks; | ||
|
||
$response = array(); | ||
foreach($mocks as $key => $elem){ | ||
$response[] = Place::fromJsonObject($elem); | ||
} | ||
|
||
return $response; | ||
} | ||
|
||
$places = generateMocks(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"applicationPath" : "/usr/share/nginx/www/stoneSoup/", | ||
"fileDataTalks" : "talks.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
class Config{ | ||
public static function get(){ | ||
$filename = "generalConfig.json"; | ||
$contents = file_get_contents($filename,true); | ||
|
||
$configObject = json_decode($contents); | ||
|
||
$configObject->talks = json_decode(file_get_contents($configObject->fileDataTalks,true)); | ||
|
||
return $configObject; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
[ | ||
{ | ||
"id":1, | ||
"name":"Splash image", | ||
"image":"banner.jpg", | ||
"type":"image", | ||
"controller":null, | ||
"innerName":"splashScreen" | ||
}, | ||
{ | ||
"id":2, | ||
"name":"Agile Open Buenos Aires Seguridad 2013", | ||
"views":[ | ||
"initialText.mustache" | ||
], | ||
"type":"htmlTemplate", | ||
"controller":null, | ||
"innerName":"generalDescription" | ||
}, | ||
{ | ||
"id":3, | ||
"name":"Charlas actuales", | ||
"views":[ | ||
"talkHref.mustache", | ||
"talkPages.mustache" | ||
], | ||
"comments":[false], | ||
"type":"list", | ||
"controller":"querys/talks.php?q=now", | ||
"innerName":"actualTalks" | ||
}, | ||
{ | ||
"id":4, | ||
"name":"Pr\u00f3ximas charlas", | ||
"views":[ | ||
"talkHref.mustache", | ||
"talkPages.mustache" | ||
], | ||
"type":"list", | ||
"comments":[true], | ||
"controller":"querys/talks.php?q=after", | ||
"innerName":"nextTalks" | ||
}, | ||
{ | ||
"id":5, | ||
"name":"queryer", | ||
"views":["query.mustache"], | ||
"type":"htmlTemplate", | ||
"innerName":"queryer" | ||
}, | ||
{ | ||
"id":6, | ||
"name":"mapaLugar", | ||
"views":["mapTpl.mustache"], | ||
"type":"map", | ||
"innerName":"Mapa del lugar", | ||
"mapData" : { | ||
"position":{"longitude":-34.58445,"latitude":-58.39801}, | ||
"zoom":17, | ||
"polygons":[ | ||
{ | ||
"points": [ | ||
{"longitude":-34.5845053, "latitude":-58.3984702}, | ||
{"longitude":-34.584785, "latitude":-58.3981282}, | ||
{"longitude":-34.5845133, "latitude":-58.3977805}, | ||
{"longitude": -34.5843965, "latitude":-58.3976309}, | ||
{"longitude": -34.584109, "latitude":-58.3979417}, | ||
{"longitude": -34.5845053, "latitude":-58.3984702} | ||
], | ||
"color": "green", | ||
"fillColor": "#0f3", | ||
"fillOpacity": 0.5 | ||
} | ||
], | ||
"circles":[ | ||
{ | ||
"center":{"longitude":-34.5845133, "latitude":-58.3977805}, | ||
"radius": 3, | ||
"color": "red", | ||
"fillColor": "#f03", | ||
"fillOpacity": 0.5 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id":7, | ||
"name":"Acerca de...", | ||
"type":"html", | ||
"html":"", | ||
"controller":null, | ||
"innerName":"acercaDe" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
[ | ||
{ | ||
"id":0, | ||
"name":"Sala 1", | ||
"talks":[ | ||
{ | ||
"name":"Mesa redonda: ¿Que medialunas te gustan?", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 04:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 04:59:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet2", | ||
"id":1, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Despertando con seguridad", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 05:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 06:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet", | ||
"id":2, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Minuto 1", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 07:01:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 09:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet2.1111", | ||
"id":3, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Hora 9", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 10:01:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 23:54:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"<b>Lorem</b> ipsum dolor sit amet2.1111", | ||
"id":4, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Hora 12", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 23:55:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 23:59:59", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet2.1111", | ||
"id":5, | ||
"dataUrls":"" | ||
} | ||
], | ||
"urlPhoto":"" | ||
}, | ||
{ | ||
"id":1, | ||
"name":"Sala 2", | ||
"talks":[ | ||
{ | ||
"name":"YaSePaso", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 05:35:50", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 12:35:50", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet3", | ||
"id":6, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Almuerzo", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 14:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 20:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet4", | ||
"id":7, | ||
"dataUrls":"" | ||
}, | ||
{ | ||
"name":"Cena", | ||
"timeDateInit":{ | ||
"date":"2013/07/01 21:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"timeDateFinish":{ | ||
"date":"2013/07/01 23:00:00", | ||
"timezone_type":3, | ||
"timezone":"America\/Argentina\/Buenos_Aires" | ||
}, | ||
"description":"Lorem ipsum dolor sit amet4", | ||
"id":8, | ||
"dataUrls":"" | ||
} | ||
], | ||
"urlPhoto":"" | ||
} | ||
] |
Oops, something went wrong.