cvs: pear-core /PEAR/Task/Postinstallscript rw.php
| From: | Greg Beaver | Date: | Wed, 19 Oct 2005 04:35:41 +0000 |
| Subject: | cvs: pear-core /PEAR/Task/Postinstallscript rw.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-35702@lists.php.net to get a copy of this message | ||
cellog Wed Oct 19 00:35:41 2005 EDT
Modified files:
/pear-core/PEAR/Task/Postinstallscript rw.php
Log:
add instructions to addConditionTypeGroup()
http://cvs.php.net/diff.php/pear-core/PEAR/Task/Postinstallscript/rw.php?r1=1.8&r2=1.9&ty=u
Index: pear-core/PEAR/Task/Postinstallscript/rw.php
diff -u pear-core/PEAR/Task/Postinstallscript/rw.php:1.8
pear-core/PEAR/Task/Postinstallscript/rw.php:1.9
--- pear-core/PEAR/Task/Postinstallscript/rw.php:1.8 Wed Oct 19 00:33:09 2005
+++ pear-core/PEAR/Task/Postinstallscript/rw.php Wed Oct 19 00:35:41 2005
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: rw.php,v 1.8 2005/10/19 04:33:09 cellog Exp $
+ * @version CVS: $Id: rw.php,v 1.9 2005/10/19 04:35:41 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a10
*/
@@ -121,9 +121,10 @@
* @param string $value value to match of the parameter
* @param string $conditiontype one of '=', '!=', 'preg_match'
* @param array|false $params array of getParam() calls, or false for no params
+ * @param string|false $instructions
*/
function addConditionTypeGroup($id, $oldgroup, $param, $value, $conditiontype = '=',
- $params = false)
+ $params = false, $instructions = false)
{
if ($params && isset($params[0]) && !isset($params[1])) {
$params = $params[0];
@@ -131,10 +132,13 @@
$stuff =
array(
$this->_pkg->getTasksNs() . ':id' => $id,
- $this->_pkg->getTasksNs() . ':name' => $oldgroup .
'::' . $param,
- $this->_pkg->getTasksNs() . ':conditiontype' => $conditiontype,
- $this->_pkg->getTasksNs() . ':value' => $value,
);
+ if ($instructions) {
+ $stuff[$this->_pkg->getTasksNs() . ':instructions'] = $instructions;
+ }
+ $stuff[$this->_pkg->getTasksNs() . ':name'] = $oldgroup . '::' .
$param;
+ $stuff[$this->_pkg->getTasksNs() . ':conditiontype'] = $conditiontype;
+ $stuff[$this->_pkg->getTasksNs() . ':value'] = $value;
if ($params) {
$stuff[$this->_pkg->getTasksNs() . ':param'] = $params;
}