Question about writing custom task for installer
| From: | Dmitri | Date: | Sun, 06 Jan 2008 02:27:32 +0000 |
| Subject: | Question about writing custom task for installer | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28410@lists.php.net to get a copy of this message | ||
Hello again!
I am starting to write a class that extends a PEAR_Task_Common
Basically I need a file task that would set a writable permission on a file after the installation of a package
I read Greg Beaver's book but I can't fine this important info: how do I suppose to name the file that contains the custom task?
Does that name of the file have to be the same as the name of the task?
For example if I want to name the task setchmod then does this mean I have to name the task Setchmod.php and install in in the
PEAR/Task/Setchmod.php?
By the way, can this even be done with the task? I mean, is it possible to set the file permission with a custom file task or
do I have to use postinstall script for that?
Thank you.
--
Open Source ALL content management
with streaming video
http://wiki.sharedlog.com