From dc4f784558db725eb555ce9668231b89aabb8954 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 27 Feb 2009 16:28:20 +0000 Subject: * Refactor task management methods from admin_maintenance.php to task.php * Added a owner_id field to the task database * Modified the admin maintenace to show the owner of the task <<**** Requires a reinstallation of core ****>> --- core/libraries/Task_Definition.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/libraries/Task_Definition.php') diff --git a/core/libraries/Task_Definition.php b/core/libraries/Task_Definition.php index 454b39ad..1f1e3287 100644 --- a/core/libraries/Task_Definition.php +++ b/core/libraries/Task_Definition.php @@ -23,6 +23,7 @@ class Task_Definition_Core { public $description; public $name; public $severity; + public $type = "admin"; // admin, general, both static function factory() { return new Task_Definition(); @@ -48,4 +49,8 @@ class Task_Definition_Core { return $this; } + function type($type) { + $this->type = $type; + return $this; + } } -- cgit v1.2.3