private function gatherTranslations (stdClass $service)
    {
        $output = '';
        $tpl = file_get_contents (__DIR__ . '/../templates/shared/array.element.hctpl');

        $line = str_replace ('{key}', 'page_title', $tpl);
        $line = str_replace ('{value}', $service->serviceName, $line);
        $output .= $line;

        $output .= $this->gatherTranslationsFromModel ($service->mainModel, $tpl, array_merge ($this->getAutoFill (), ['id']));
        if (isset($service->mainModel->multiLanguage))
            $output .= $this->gatherTranslationsFromModel ($service->mainModel->multiLanguage, $tpl, array_merge ($this->getAutoFill (), ['id', 'language_code', 'record_id']));

        return $output;
    }
private function gatherTranslations (stdClass $service)
    {
        $output = '';
        $tpl = file_get_contents (__DIR__ . '/../templates/shared/array.element.hctpl');

        $line = str_replace ('{key}', 'page_title', $tpl);
        $line = str_replace ('{value}', $service->serviceName, $line);
        $output .= $line;

        $output .= $this->gatherTranslationsFromModel ($service->mainModel, $tpl, array_merge ($this->getAutoFill (), ['id']));
        if (isset($service->mainModel->multiLanguage))
            $output .= $this->gatherTranslationsFromModel ($service->mainModel->multiLanguage, $tpl, array_merge ($this->getAutoFill (), ['id', 'language_code', 'record_id']));

        return $output;
    }
private function gatherTranslations ( stdClass $ service ) { $ output = '' ; $ tpl = file_get_contents ( __DIR__ . '/../templates/shared/array.element.hctpl' ) ; $ line = str_replace ( '{key}' , 'page_title' , $ tpl ) ; $ line = str_replace ( '{value}' , $ service -> serviceName , $ line ) ; $ output .= $ line ; $ output .= $ this -> gatherTranslationsFromModel ( $ service -> mainModel , $ tpl , array_merge ( $ this -> getAutoFill ( ) , [ 'id' ] ) ) ; if ( isset ( $ service -> mainModel -> multiLanguage ) ) $ output .= $ this -> gatherTranslationsFromModel ( $ service -> mainModel -> multiLanguage , $ tpl , array_merge ( $ this -> getAutoFill ( ) , [ 'id' , 'language_code' , 'record_id' ] ) ) ; return $ output ; }
Gathering available translations

@param $service
@return string
Gathering available translations