Source for file access.php

Documentation is available at access.php


1 <?php
2 /**
3 * @package Examples
4 * @author Derick Rethans <derick@php.net>
5 */
6
7 /**
8 * Example class to show the use of the access tag
9 * @package Examples
10 */
11 class Example {
12
13 /**
14 * @var float $_amount Amount of money in my pocket
15 * @access private
16 */
17 var $_amount;
18
19 /**
20 * Subtracts money from my pocket and gives it away
21 *
22 * @param float $money Amount of money to give away
23 * @access private
24 */
25 function _giveMoneyAway ($money) {
26 $ret = $this->_amount;
27 $this->_amount -= $money;
28 return $ret;
29 }
30
31 /**
32 * Calculate the amount of money and give it away
33 *
34 * @param int $bills Number of ?10 bills to give away
35 * @access public
36 */
37 function giveBillsAway ($bills) {
38 return $this->_giveMoneyAway($bills * 10);
39 }
40 }
41 ?>

Documentation generated on Tue, 18 Nov 2003 18:06:10 +0100 by phpDocumentor 1.2.2