22 lines
605 B
PHP
22 lines
605 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @copyright 2010 City of Bloomington, Indiana
|
||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
||
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
||
|
*/
|
||
|
$cemeteries = array();
|
||
|
foreach ($this->cemeteryList as $cemetery) {
|
||
|
$name = addslashes($cemetery->getName());
|
||
|
$url = addslashes($cemetery->getURL());
|
||
|
$googleMapUrl = addslashes($cemetery->getGoogleMapURL());
|
||
|
$cemeteries[] = "
|
||
|
{ \"id\":\"{$cemetery->getId()}\",
|
||
|
\"name\":\"$name\",
|
||
|
\"url\":\"$url\",
|
||
|
\"googleMapUrl\":\"$googleMapUrl\"
|
||
|
}
|
||
|
";
|
||
|
}
|
||
|
$cemeteries = implode(',',$cemeteries);
|
||
|
echo "[$cemeteries]";
|