CMS  Version 3.9
glossary_view.inc
Go to the documentation of this file.
1 <?php
8 
9  var $glossary;
10  var $display = null;
11 
13  {
14  $this->glossary = $glossary;
15  $this->display = null;
16  }
17 
18  function draw()
19  {
20  $display = "<dl>";
21  foreach ($this->glossary as $term)
22  {
23  $display .="<dt>{$term->term}</dt>";
24  $display .="<dd>{$term->definition}</dd>";
25  }
26  $display .='<dl>';
27  echo $display;
28  }
29 
30  function glossaryJsonFormat()
31  {
33  echo toJSON($glossary);
34  }
35 }?>
__construct($glossary)
$term
Definition: term_dialog.inc:46