Piwik\Plugins\Events\Events::getReportTitleTranslation PHP Method

getReportTitleTranslation() public method

Given getCategory, returns "Event Categories"
public getReportTitleTranslation ( $apiMethod ) : string
$apiMethod
return string
    public function getReportTitleTranslation($apiMethod)
    {
        return $this->getTranslation($apiMethod, $index = 0);
    }

Usage Example

Esempio n. 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);
 }
All Usage Examples Of Piwik\Plugins\Events\Events::getReportTitleTranslation