[thelist] OOP Validation Classes in PHP
Jay Blanchard
jay.blanchard at niicommunications.com
Mon Sep 22 08:48:25 CDT 2003
[snip]
When I started writing the classes, I was looking for more specific
answers, such as how to pass the value of one method to another method
in the same class, or in another class.
[/snip]
As to the first, the returned value can be passed to another method in
the same class
function _someFunc ($var1) { //private method (but not really yet in
PHP)
do stuff;
return stuff;
_someOtherFunc(stuff);
}
function _someOtherFunction($var2) {
do stuff with stuff;
}
As to the second, inheritance is your friend and then can be passed as
above
More information about the thelist
mailing list