Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 6 |
| TaskUserList | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 6 |
| run | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 6 |
|||
| <?php | |
| namespace humhub\modules\tasks\widgets; | |
| use humhub\components\Widget; | |
| use humhub\modules\tasks\models\Task; | |
| use humhub\modules\tasks\models\user\TaskUser; | |
| use Yii; | |
| class TaskUserList extends Widget | |
| { | |
| public $users; | |
| public $style = ''; | |
| public $type = Task::USER_ASSIGNED; | |
| public function run() | |
| { | |
| if(empty($this->users)) { | |
| return ''; | |
| } | |
| return $this->render('userList', ['users' => $this->users, 'style' => $this->style, 'type' => $this->type]); | |
| } | |
| } |