For non-script tasks, startSession() is called to actually
execute a task. The task should perform all needed operations on the file contents,
and on success return the file contents regardless of any modification. These contents
will be written to disk, so it is imperative that they be the full, original file
contents if no modification is made to them.
For script tasks, startSession() is called
to determine whether the script can be safely executed. For both task types,
script and non-script, a return value of FALSE will cause the task to be silently
skipped. A return value of a PEAR_Error will cause processing of all operations
to stop, and an error message to be displayed by the installer prior to exiting.
Any other return value will cause the script to be processed normally by the frontend
as a post-installation script.
- string $contents
The original contents of the file whose <file> tag in package.xml
contains the task tag.
- string $dest
The full path to the final installed file location. This is strictly
informational, as the file does not yet exist, and should only be used
for error messages or other processing that does not attempt to modify
the file.