Re: How do I contribute new module?
| From: | Sterling Hughes | Date: | Fri, 01 Dec 2000 08:28:28 +0000 |
| Subject: | Re: How do I contribute new module? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39771@lists.php.net to get a copy of this message | ||
>> As a preliminary note I think the api should be changed to
>> muscat_* purpose to
>> conform to the naming guidelines of PHP.
>
>OK, will do.
>
>I would rather make an object of it;
>
>$muscat=new CoreMuscat(20000000,"/usr/local/empower");
>$muscat->give("c i");
>$muscat->close();
>etc etc
>
>I saw references to using getThis() to get the "self"-ness, but I'm not sure
>how to create it as an object... (and if I did, would people still be able
>to add arbitrary properties to it?)
>
I'd prefer if you kept it to using a function-oriented syntax, which conforms to
the rest of the extensions distributed with PHP. Its a cleaner interface in
most cases. You can however have a PEAR class wrapping around the Muscat
functionality if you want to...
-Sterling