Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 13 |
TaskIcon | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 13 |
init | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 6 |
|||
run | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
<?php | |
/** | |
* @link https://www.humhub.org/ | |
* @copyright Copyright (c) 2018 HumHub GmbH & Co. KG | |
* @license https://www.humhub.com/licences | |
* | |
*/ | |
/** | |
* Created by PhpStorm. | |
* User: davidborn | |
*/ | |
namespace humhub\modules\tasks\widgets; | |
use humhub\components\Widget; | |
use humhub\modules\tasks\models\Task; | |
class TaskIcon extends Widget | |
{ | |
/** | |
* @var Task | |
*/ | |
public $task; | |
public $include; | |
public $includeOverdue = true; | |
public function init() | |
{ | |
if(empty($this->include)) { | |
$this->include = Task::$statuses; | |
} | |
parent::init(); // TODO: Change the autogenerated stub | |
} | |
public function run() | |
{ | |
return $this->render('taskIcon', [ | |
'task' => $this->task, | |
'include' => $this->include, | |
'includeOverdue' => $this->includeOverdue, | |
]); | |
} | |
} |