Re: Re: [PHP] PHP5 object construct
| From: | Joe Wollard | Date: | Sat, 23 Sep 2006 00:27:06 +0000 |
| Subject: | Re: Re: [PHP] PHP5 object construct | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242118@lists.php.net to get a copy of this message | ||
well, perhaps I'm not seeing what it is that you're looking for. The
page I sent you is a basic introduction to classes and OOP in PHP,
which based on the example that you've provided seemed like what you
wanted. It seems obvious that you want to learn more about OOP, but
are you trying to find a specific 'bob' example or would you just like
some help understanding OOP? What is the end result you're hoping to
get out of the list?.....Google also provided these results, which
might help you if a specific example is what you're looking for:
http://pear.php.net/reference/PhpDocumentor-1.2.0beta2/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html
http://us3.php.net/get_object_vars
http://us3.php.net/spl
Feel free to help us help you ;-)
On 9/22/06, Chris Boget <chris.boget@wild.net> wrote:
http://us2.php.net/class Any particular place on that page I should be looking? I've read it several times and didn't see anything like the above. The closest thing I saw were actual methods called setBob() and getBob(), which isn't exactly what I'm looking for... thnx, ChrisI read about a feature of PHP5 OOP that is something like this in a book or a magazine a while back. But now I don't remember exactly how this works and I can't find any reference to it in the online docs. The basic idea is something along these lines: class MyClass { private $bob; public $Bob {set( $var ) { $this->bob = $var;} get() { return $this->bob;}} } Could someone point me to the relevant section of the docs that discusses this?