2010-01-06 16:16:21 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2010 City of Bloomington, Indiana
|
2011-06-14 13:29:37 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
2010-01-06 16:16:21 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @param Cemetery $this->cemetery
|
|
|
|
*/
|
|
|
|
$name = View::escape($this->cemetery->getName());
|
|
|
|
echo "
|
|
|
|
<cemetery id=\"{$this->cemetery->getId()}\">
|
|
|
|
<name>$name</name>
|
|
|
|
<sections>
|
|
|
|
";
|
|
|
|
foreach ($this->cemetery->getSections() as $section) {
|
|
|
|
$code = View::escape($section->getCode());
|
|
|
|
$name = View::escape($section->getName());
|
|
|
|
echo "
|
|
|
|
<section id=\"{$section->getId()}\">
|
|
|
|
<code>$code</code>
|
|
|
|
<name>$name</name>
|
|
|
|
</section>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
|
|
|
</sections>
|
|
|
|
</cemetery>
|
|
|
|
";
|