public function cacheCurrentParent($gridContainerId = 0, $doReturn = false)
    {
        if ($gridContainerId > 0) {
            if (empty($GLOBALS['tx_gridelements']['parentElement'][$gridContainerId])) {
                $GLOBALS['tx_gridelements']['parentElement'][$gridContainerId] = BackendUtility::getRecordWSOL(
                    'tt_content',
                    $gridContainerId
                );
            }
        }
        if ($doReturn) {
            return $GLOBALS['tx_gridelements']['parentElement'][$gridContainerId];
        }

        return null;
    }
public function cacheCurrentParent($gridContainerId = 0, $doReturn = false)
    {
        if ($gridContainerId > 0) {
            if (empty($GLOBALS['tx_gridelements']['parentElement'][$gridContainerId])) {
                $GLOBALS['tx_gridelements']['parentElement'][$gridContainerId] = BackendUtility::getRecordWSOL(
                    'tt_content',
                    $gridContainerId
                );
            }
        }
        if ($doReturn) {
            return $GLOBALS['tx_gridelements']['parentElement'][$gridContainerId];
        }

        return null;
    }
public function cacheCurrentParent ( $ gridContainerId = 0 , $ doReturn = false ) { if ( $ gridContainerId > 0 ) { if ( empty ( $ GLOBALS [ 'tx_gridelements' ] [ 'parentElement' ] [ $ gridContainerId ] ) ) { $ GLOBALS [ 'tx_gridelements' ] [ 'parentElement' ] [ $ gridContainerId ] = BackendUtility :: getRecordWSOL ( 'tt_content' , $ gridContainerId ) ; } } if ( $ doReturn ) { return $ GLOBALS [ 'tx_gridelements' ] [ 'parentElement' ] [ $ gridContainerId ] ; } return null ; }
Caches Container-Records and their setup to avoid multiple selects of the same record during a single request

@param int $gridContainerId The ID of the current grid container
@param bool $doReturn

@return array|null
Caches Container - Records and their setup to avoid multiple selects of the same record during a single request