diff options
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/task.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/models/task.php b/core/models/task.php index 85713419..0255a6ad 100644 --- a/core/models/task.php +++ b/core/models/task.php @@ -34,7 +34,7 @@ class Task_Model extends ORM { return parent::__get($column); } } - + public function get($key, $default=null) { $context = unserialize($this->context); if (array_key_exists($key, $context)) { @@ -56,4 +56,8 @@ class Task_Model extends ORM { } return parent::save(); } + + public function owner() { + return user::lookup($this->owner_id); + } }
\ No newline at end of file |