fix documentation, minor code cleanups

This commit is contained in:
Uwe Steinmann 2017-12-18 12:41:18 +01:00
parent 326a4eda2f
commit 31853c5586

View File

@ -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() { /* {{{ */