/**
  * @return array
  */
 protected function getAllRootTypoScriptTemplates()
 {
     $condition = 'deleted = 0 AND hidden = 0 AND starttime <= :starttime AND (endtime = 0 OR endtime > :endtime)';
     $parameters = array(':starttime' => $GLOBALS['SIM_ACCESS_TIME'], ':endtime' => $GLOBALS['SIM_ACCESS_TIME']);
     $rootTypoScriptTemplates = $this->recordService->preparedGet('sys_template', 'pid', $condition, $parameters);
     return $rootTypoScriptTemplates;
 }
 /**
  * @return array
  */
 protected function getTypoScriptTemplatesInRootline()
 {
     $rootline = $this->pageRepository->getRootLine($this->configurationManager->getCurrentPageId());
     $pageUids = array();
     foreach ($rootline as $page) {
         $pageUids[] = $page['uid'];
     }
     if (empty($pageUids)) {
         return array();
     }
     $condition = 'deleted = 0 AND hidden = 0 AND starttime <= :starttime AND (endtime = 0 OR endtime > :endtime) AND pid IN (' . implode(',', $pageUids) . ')';
     $parameters = array(':starttime' => $GLOBALS['SIM_ACCESS_TIME'], ':endtime' => $GLOBALS['SIM_ACCESS_TIME']);
     $rootTypoScriptTemplates = $this->recordService->preparedGet('sys_template', 'pid', $condition, $parameters);
     return $rootTypoScriptTemplates;
 }