* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class HelperKpiCore extends Helper { public $base_folder = 'helpers/kpi/'; public $base_tpl = 'kpi.tpl'; public $id; public $icon; public $chart; public $color; public $title; public $subtitle; public $value; public $data; public $source; public $href; public function generate() { $this->tpl = $this->createTemplate($this->base_tpl); $this->tpl->assign(array( 'id' => $this->id, 'icon' => $this->icon, 'chart' => (bool)$this->chart, 'color' => $this->color, 'title' => $this->title, 'subtitle' => $this->subtitle, 'value' => $this->value, 'data' => $this->data, 'source' => $this->source, 'href' => $this->href )); return $this->tpl->fetch(); } }