$extension
$extension : \Xima\XmTools\Classes\Typo3\Model\Extension
The extension that uses the Connector.
The Api facade. The API configuration must be done through the TYPO3 constant editor for the concrete extension.
$extension : \Xima\XmTools\Classes\Typo3\Model\Extension
The extension that uses the Connector.
$typo3Services : \Xima\XmTools\Classes\Typo3\Services
$cacheManager : \Xima\XmTools\Classes\Typo3\Cache\ApiCacheManager
get(string $url, \Xima\XmTools\Classes\API\REST\Repository\ApiRepository $repository) : array
Gets called by repositories inheriting from Xima\XmTools\Classes\API\REST\Repository\AbstractApiRepository, retrieves JSON responses, converts arrays to objects according to the given repository class name (if existing) or to array of arrays.
Translates values to the current or fallback language when fields with the following patterns are found: -nameDe, nameEn... -name_de, name_en... Calls cache or calls API and stores result in cache if older than one day.
string | $url | |
\Xima\XmTools\Classes\API\REST\Repository\ApiRepository | $repository |
setExtension(\Xima\XmTools\Classes\Typo3\Model\Extension $extension) : \Xima\XmTools\Classes\API\REST\Connector
Sets the current extension and the cache path accoring to the extension key.
\Xima\XmTools\Classes\Typo3\Model\Extension | $extension |