namespace issues
| From: | Todd.Kirby | Date: | Fri, 29 Oct 2004 04:13:54 +0000 |
| Subject: | namespace issues | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1554@lists.php.net to get a copy of this message | ||
Hi,
I have written a small php extension for php 4.3.x and I've set it up in an object oriented way with accessors for my object attributes. The problem I am having is that all my accessors show up in phps global function list, Is there a way to only define extension functions as methods of an object
example:
$movie = myPhpExtensionCreateMovie(/path/to/movie);
$movie->getFileName();
$movie->getAuthor();
Obviously I don't want to have getAuthor() be a general php function since it is only relevant to objects created by my extension.
Any help appreciated.
-Todd Kirby