getType()); $this->getTable()->prepareItems(); $path = AffiliateImporter::getInstance()->getImporter($this->getType())->getMainFilePath(); include $path . '/layout/stats.php'; } /** * @return Table */ public function getTable() { if ($this->table === null) { $this->table = new StatsTable(); $this->table->setType($this->getType()); } return $this->table; } }