cvs: pear-core /PEAR/Task Common.php
| From: | Greg Beaver | Date: | Sun, 18 Sep 2005 06:01:37 +0000 |
| Subject: | cvs: pear-core /PEAR/Task Common.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-34844@lists.php.net to get a copy of this message | ||
cellog Sun Sep 18 02:01:37 2005 EDT
Modified files:
/pear-core/PEAR/Task Common.php
Log:
revert inadvertant deletion of runPostinstallTasks()
http://cvs.php.net/diff.php/pear-core/PEAR/Task/Common.php?r1=1.11&r2=1.12&ty=u
Index: pear-core/PEAR/Task/Common.php
diff -u pear-core/PEAR/Task/Common.php:1.11 pear-core/PEAR/Task/Common.php:1.12
--- pear-core/PEAR/Task/Common.php:1.11 Sun Sep 18 01:50:12 2005
+++ pear-core/PEAR/Task/Common.php Sun Sep 18 02:01:34 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: Common.php,v 1.11 2005/09/18 05:50:12 cellog Exp $
+ * @version CVS: $Id: Common.php,v 1.12 2005/09/18 06:01:34 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -174,6 +174,22 @@
}
/**
+ * @static
+ * @final
+ */
+ function runPostinstallTasks()
+ {
+ foreach ($GLOBALS['_PEAR_TASK_POSTINSTANCES'] as $class => $tasks) {
+ $err = call_user_func(array($class, 'run'),
+ $GLOBALS['_PEAR_TASK_POSTINSTANCES'][$class]);
+ if ($err) {
+ return PEAR_Task_Common::throwError($err);
+ }
+ }
+ unset($GLOBALS['_PEAR_TASK_POSTINSTANCES']);
+ }
+
+ /**
* Determines whether a role is a script
* @return bool
*/