public function getModelName() { if ($this->isExternal()) { return $this->getRawTableName(); } else { return parent::getModelName(); } }
/** * Check if reference tablename matched. * * @param Table $table The reference table * @param string $tablename The table name * @return bool */ protected function checkReferenceTableName($table, $tablename) { return $table && $table->getRawTableName() === $tablename ? true : false; }
/** * (non-PHPdoc) * @see \MwbExporter\Model\Base::getVars() */ protected function getVars() { return array_merge(parent::getVars(), array('%entity%' => strtolower($this->getModelName()))); }