/** * Initialize a task instance with the parameters * @param array raw, parsed xml * @param array attributes from the <file> tag containing this task * @param string|null last installed version of this package */ function __construct($pkg, $phase, $xml, $attribs, $lastversion) { parent::__construct($pkg, $phase, $xml, $attribs, $lastversion); }
/** * Initialize a task instance with the parameters * @param array raw, parsed xml * @param array attributes from the <file> tag containing this task * @param string|null last installed version of this package, if any (useful for upgrades) */ function __construct($pkg, $phase, $xml, $attribs, $lastversion) { parent::__construct($pkg, $phase, $xml, $attribs, $lastversion); $this->scriptClass = str_replace(array('/', '.php'), array('_', ''), $attribs['name']) . '_postinstall'; $this->_filename = $attribs['name']; }