%PDF- %PDF-
| Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/tasks/widgets/ |
| Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/tasks/widgets/TaskInfoBox.php |
<?php
namespace humhub\modules\tasks\widgets;
use humhub\components\Widget;
use humhub\modules\tasks\models\Task;
class TaskInfoBox extends Widget
{
/**
* @var string
*/
public $title;
/**
* @var string|array
*/
public $value;
/**
* @var $string
*/
public $icon;
public $iconColor;
/**
* @var string
*/
public $cssClass;
public $textClass;
public function init()
{
parent::init();
if(!$this->iconColor) {
$this->iconColor = $this->view->theme->variable('info');
}
}
/**
* @inheritdoc
*/
public function run()
{
return $this->render('taskInfoBox', [
'cssClass' => $this->cssClass,
'textClass' => $this->textClass,
'title' => $this->getTitle(),
'value' => $this->getValue(),
'icon' => $this->getIcon(),
'iconColor' => $this->iconColor,
]);
}
public function getTitle()
{
return $this->title;
}
public function getValue()
{
return $this->value;
}
public function getIcon()
{
return $this->icon;
}
}