public getReportTitleTranslation ( $apiMethod ) : string | ||
$apiMethod | ||
Результат | string |
public function getReportTitleTranslation($apiMethod)
{
return $this->getTranslation($apiMethod, $index = 0);
}
protected function indexEvent($controllerMethod) { $count = 1; $apiMethod = str_replace('index', 'get', $controllerMethod, $count); $events = new Events(); $title = $events->getReportTitleTranslation($apiMethod); if (method_exists($this, $apiMethod)) { $content = $this->{$apiMethod}(); } else { $content = $this->renderReport($apiMethod); } return View::singleReport($title, $content); }