doxyphp_example.php

См. документацию.
00001 <?
00002 $a = 1;
00003 $d = 1;
00004 
00005 /**
00006  * FOO_BAR - Enter description here...
00007  */
00008 define("FOO_BAR", "foo bar");
00009 
00010 /**
00011  * FooBase - Enter description here...
00012  */
00013 class FooBase {
00014         /**
00015          * foo1 - Enter description here...
00016          */
00017         public function foo1() {
00018         }
00019 }
00020 
00021 /**
00022  * Foo - Enter description here...
00023  */
00024 class Foo extends FooBase {
00025         
00026         /**
00027          * bar - Enter description here...
00028          * @var Bar
00029          */
00030         public $bar;
00031         
00032         /**
00033          * foo1 - Enter description here...
00034          */
00035         public function foo1() {
00036                 $this->foo2();
00037                 parent::foo1();
00038         }
00039         
00040         /**
00041          * foo2 - Enter description here...
00042          */
00043         public function foo2() {
00044                 print "foo";
00045                 $this->bar->bar2();
00046         }
00047 }
00048 
00049 /**
00050  * Bar - Enter description here...
00051  */
00052 class Bar {
00053         /**
00054          * bar1 - Enter description here...
00055          * @param Foo $foo Enter description here...
00056          * @param string $str Enter description here...
00057          * @return bool
00058          */
00059         public static function bar1($foo, $str) {
00060                 $foo->foo1();
00061                 $foo2 = new Foo();
00062                 /* @var $foo2 Foo */
00063                 $foo2->foo2();
00064                 self::bar2();
00065         }
00066         
00067         /**
00068          * bar2 - Enter description here...
00069          */
00070         public static function bar2() {
00071                 $a = 2;
00072                 $ddd = $a + 1 + FOO_BAR;
00073                 print "bar";
00074         }
00075 }
00076 ?>

Документация по Doxyphpexample. Последние изменения: Mon Jun 18 17:08:12 2007. Создано системой  doxygen 1.5.2