Are there any rules as to how information from outside a class can be
moved into it.
What Ive been doing so far is
1. Through the constructor
2. defining a constant
3. Create a method whose sole purpose is to move data from the outside
into the class.
i.e.
<?php
class foo ()
{
......
function outside_data($bar)
{
$this->bar = $bar;
}
......
}
// class constructor here
.......
$class->outside_data($php);
?>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php