getReportTitleTranslation() публичный Метод

Given getCategory, returns "Event Categories"
public getReportTitleTranslation ( $apiMethod ) : string
$apiMethod
Результат string
Пример #1
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);
 }
Пример #2
0
 protected function indexEvent($controllerMethod)
 {
     $count = 1;
     $apiMethod = str_replace('index', 'get', $controllerMethod, $count);
     $events = new Events();
     $title = $events->getReportTitleTranslation($apiMethod);
     return View::singleReport($title, $this->{$apiMethod}());
 }