blob: dc806d7e0885c275129e22ea079423d7261029c7 (
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
|
<?php
/***** Copyright 2012 Simon Dales
**
** This work may be distributed and/or modified under the
** conditions of the LaTeX Project Public License, either version 1.3
** of this license or (at your option) any later version.
** The latest version of this license is in
** http://www.latex-project.org/lppl.txt
**
** This work has the LPPL maintenance status `maintained'.
**
** The Current Maintainer of this work is Simon Dales.
*/
/*!
\file
\brief test code
*/
/*!
\mainpage
Some test code.
This shows a hierachy of classes.
For this example we do animals.
*/
require_once('animals.php');
// main
$animals = array(
new Cat
,new Dog
,new Bird
,new RedKite
,new Pigeon
);
foreach ( $animals as $v)
$v->call();
//eof
?>
|