示例#1
0
文件: Unixeol.php 项目: helgi/Pyrus
 /**
  * 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);
 }
示例#2
0
 /**
  * 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'];
 }