summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/lua2dox/examples/php/docs/html/main_8php-source.html
blob: b3a4c2057a1c7f86762cd5248186fe8d5b6570a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Sample Code (PHP): main.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>main.php</h1><a href="main_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 <span class="comment">/***** Copyright 2012 Simon Dales</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** This work may be distributed and/or modified under the</span>
<a name="l00005"></a>00005 <span class="comment">** conditions of the LaTeX Project Public License, either version 1.3</span>
<a name="l00006"></a>00006 <span class="comment">** of this license or (at your option) any later version.</span>
<a name="l00007"></a>00007 <span class="comment">** The latest version of this license is in</span>
<a name="l00008"></a>00008 <span class="comment">**   http://www.latex-project.org/lppl.txt</span>
<a name="l00009"></a>00009 <span class="comment">**</span>
<a name="l00010"></a>00010 <span class="comment">** This work has the LPPL maintenance status `maintained'.</span>
<a name="l00011"></a>00011 <span class="comment">** </span>
<a name="l00012"></a>00012 <span class="comment">** The Current Maintainer of this work is Simon Dales.</span>
<a name="l00013"></a>00013 <span class="comment">*/</span>
<a name="l00014"></a>00014 
<a name="l00029"></a>00029 require_once(<span class="stringliteral">'animals.php'</span>);
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">// main</span>
<a name="l00032"></a><a class="code" href="main_8php.html#341e9e641ceab16445632bd3c630cf48">00032</a> <a class="code" href="main_8php.html#341e9e641ceab16445632bd3c630cf48">$animals</a> = array(
<a name="l00033"></a>00033    <span class="keyword">new</span> <a class="code" href="classCat.html" title="a subclassed mammal">Cat</a>
<a name="l00034"></a>00034   ,<span class="keyword">new</span> <a class="code" href="classDog.html" title="another subclassed mammal">Dog</a>
<a name="l00035"></a>00035   ,<span class="keyword">new</span> <a class="code" href="classBird.html" title="an abstract bird">Bird</a>
<a name="l00036"></a>00036   ,<span class="keyword">new</span> <a class="code" href="classRedKite.html" title="another subclassed bird">RedKite</a>
<a name="l00037"></a>00037   ,<span class="keyword">new</span> <a class="code" href="classPigeon.html" title="a subclassed bird">Pigeon</a>
<a name="l00038"></a>00038   );
<a name="l00039"></a>00039   
<a name="l00040"></a>00040 <span class="keywordflow">foreach</span> ( <a class="code" href="main_8php.html#341e9e641ceab16445632bd3c630cf48">$animals</a> as $v)
<a name="l00041"></a>00041   $v-&gt;call();
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="comment">//eof</span>
<a name="l00044"></a>00044 ?&gt;
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 11 16:12:42 2012 for Sample Code (PHP) by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>