Xima\XmTools\Classes\Typo3\Services

class Services

XmTools’ facade like base class.

Initialises common settings such as current language and extension, global site parameters and managers. Includes static and non static helper functions for TYPO3. Include it by dependency injection.

property extensionManager

protected XimaXmToolsClassesTypo3ExtensionExtensionManager

property extension

protected XimaXmToolsClassesTypo3ModelExtension

The current extension.

property langId

protected

property lang

protected

property parameters

protected array

The site parameters from parameters.yml.

property settings

protected array

The settings of the xm_tools extension.

initializeObject()
addToHead($html)

Fügt HTML-Code zum <head> hinzu.

Parameters:
  • $html (string) –
includeJavaScript($files, Extension $extension = null)

Binds JavaScript files in the HTML head of the page (TYPO3).

Parameters:
  • $files (array) – file names, starting with http or relative
  • $extension (Extension) –
includeJavaScriptByTypoScript($config, $keys)

Binds JavaScript files by Typoscript config in the HTML head of the page (TYPO3).

Parameters:
  • $config (array) – Key value array with path to file
  • $keys (array) – Array of file keys
includeCss($files, Extension $extension = null)

Binds CSS files in the HTML head of the page (TYPO3).

Parameters:
  • $files (array) – file names, starting with http or relative
  • $extension (Extension) –
includeCssByTypoScript($config, $keys)

Binds CSS files by Typoscript config in the HTML head of the page (TYPO3).

Parameters:
  • $config (array) – Key value array with path to file
  • $keys (array) – Array of file keys
getUrlByPid($pageId, $idAsGet = false)

Gibt die Real-Url oder die PageID (?id=[PID]) zurück.

Parameters:
  • $pageId
  • $idAsGet (bool) –
Returns:

string

getBaseUrlForGetRequestByPid($pageId, $idAsGet = false)

Returns the base URL for GET-Request with ending ? od &.

Parameters:
  • $pageId
  • $idAsGet (bool) –
Returns:

string

addFlexforms($extensionKey, $pluginName, $flexformName)

Registriert Flexforms.<br /> Benutzbar in <i>ext_tables.php</i>.

Parameters:
  • $extensionKey
  • $pluginName
  • $flexformName
setPageTitle($title)

Set the title of the single view page to a custom defined title.

Parameters:
  • $title (string) –
prependPageTitle($title)

Set the title of the single view page to a custom defined title.

Parameters:
  • $title (string) –
getIsoLang()
getLangId()
setLangId($langId)
Parameters:
  • $langId
getLang()
setLang($lang)
Parameters:
  • $lang
getExtension()
setExtension($extension)
Parameters:
  • $extension
getExtensionManager()
setExtensionManager($extensionManager)
Parameters:
  • $extensionManager
getParameters()
setParameters($parameters)
Parameters:
  • $parameters
getSettings()
setSettings($settings)
Parameters:
  • $settings
getPageRenderer()
Returns:TYPO3CMSCorePagePageRenderer