From 31853c5586587d924060c0de8ef30b4357f43174 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 18 Dec 2017 12:41:18 +0100 Subject: [PATCH] fix documentation, minor code cleanups --- views/bootstrap/class.Tasks.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/views/bootstrap/class.Tasks.php b/views/bootstrap/class.Tasks.php index 7fd1d77ea..921e06539 100644 --- a/views/bootstrap/class.Tasks.php +++ b/views/bootstrap/class.Tasks.php @@ -96,11 +96,7 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; $startts = microtime(true); - $tasks['review'] = 0; - $tasks['approval'] = 0; - $tasks['receipt'] = 0; - $tasks['revision'] = 0; - + $tasks = array(); $tasks['review'] = $dms->countTasks('ReviewByMe', $user); $tasks['approval'] = $dms->countTasks('ApproveByMe', $user); $tasks['receipt'] = $dms->countTasks('ReceiptByMe', $user); @@ -111,14 +107,9 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style { } /* }}} */ /** - * Returns the html needed for the task list in the menu + * Returns a json array of tasks to be done * - * This function renders the tasks in a way suitable to be - * used as a menu - * - * @param array $clipboard clipboard containing two arrays for both - * documents and folders. - * @return string html code + * @return string json string */ function myTasks() { /* {{{ */ $dms = $this->params['dms']; @@ -137,8 +128,6 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style { * This function renders the tasks in a way suitable to be * used as a menu * - * @param array $clipboard clipboard containing two arrays for both - * documents and folders. * @return string html code */ function menuTasks() { /* {{{ */