* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class HelperKpiRowCore extends Helper { /** * @var string */ public $base_folder = 'helpers/kpi/'; /** * @var string */ public $base_tpl = 'row.tpl'; public $kpis = []; public $refresh = true; public function generate() { $this->tpl = $this->createTemplate($this->base_tpl); $this->tpl->assign('kpis', $this->kpis); $this->tpl->assign('refresh', $this->refresh); return $this->tpl->fetch(); } }