/**
  * add localized page records to a cache/globalArray
  * This is much faster than requesting the DB for each tt_content-record
  * @param array $row
  * @return void
  */
 public function addLocalizedPagesToCache($row)
 {
     $this->cachedPageRecords[0][$row['uid']] = $row;
     foreach ($this->sysLanguages as $sysLang) {
         list($pageOverlay) = BackendUtility::getRecordsByField('pages_language_overlay', 'pid', $row['uid'], 'AND sys_language_uid=' . intval($sysLang[1]));
         if ($pageOverlay) {
             $this->cachedPageRecords[$sysLang[1]][$row['uid']] = TYPO3\CMS\Core\Utility\GeneralUtility::array_merge($row, $pageOverlay);
         }
     }
 }
 /**
  * add localized page records to a cache/globalArray
  * This is much faster than requesting the DB for each tt_content-record
  *
  * @param array $row
  * @return void
  */
 public function addLocalizedPagesToCache($row)
 {
     $this->cachedPageRecords[0][$row['uid']] = $row;
     foreach ($this->sysLanguages as $sysLang) {
         if (TYPO3_VERSION_INTEGER >= 7000000) {
             list($pageOverlay) = TYPO3\CMS\Backend\Utility\BackendUtility::getRecordsByField('pages_language_overlay', 'pid', $row['uid'], 'AND sys_language_uid=' . intval($sysLang[1]));
         } else {
             list($pageOverlay) = t3lib_BEfunc::getRecordsByField('pages_language_overlay', 'pid', $row['uid'], 'AND sys_language_uid=' . intval($sysLang[1]));
         }
         if ($pageOverlay) {
             if (TYPO3_VERSION_INTEGER >= 7000000) {
                 $this->cachedPageRecords[$sysLang[1]][$row['uid']] = TYPO3\CMS\Core\Utility\GeneralUtility::array_merge($row, $pageOverlay);
             } else {
                 $this->cachedPageRecords[$sysLang[1]][$row['uid']] = t3lib_div::array_merge($row, $pageOverlay);
             }
         }
     }
 }