~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/packages/agWebservicesPackage/modules/agWebservices/templates/geteventSuccess.json.php

  • Committer: Clayton Kramer
  • Date: 2011-07-26 18:12:28 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: clayton.kramer@mail.cuny.edu-20110726181228-ldpybh717xkhuq25
Added event facilities export to webservices

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[
 
2
<?php $nb = count($results); $i = 0 ; foreach ($results as $url => $entity): ++$i ?>
 
3
{
 
4
  "type": "<?php echo $type ?>", 
 
5
  <?php $nb1 = count($entity); $j = 0; foreach ($entity as $key => $value): ++$j ?>
 
6
"<?php echo $key ?>": <?php echo (is_object($value))?json_encode($value->getRawValue()):json_encode($value); echo ($nb1 == $j ? '' : ',') ?> 
 
7
  <?php endforeach ?>
 
8
}<?php echo $nb == $i ? '' : ',' ?>
 
9
 
 
10
<?php endforeach ?>
 
11
]
 
 
b'\\ No newline at end of file'