protected function getListParentDataFromMemory($subContext, $context = null)
    {
        $memory = $this->getListMemory();

        $oldContext    = $memory->getContext();
        $oldSubContext = $memory->getSubContext();

        if (null !== $context) {
            $memory->setContext($context);
        }

        $memory->setSubContext($subContext);

        $listParent = $memory->getListParent();

        if (null !== $context) {
            $memory->setContext($oldContext);
        }

        $memory->setSubContext($oldSubContext);

        return $listParent;
    }
protected function getListParentDataFromMemory($subContext, $context = null)
    {
        $memory = $this->getListMemory();

        $oldContext    = $memory->getContext();
        $oldSubContext = $memory->getSubContext();

        if (null !== $context) {
            $memory->setContext($context);
        }

        $memory->setSubContext($subContext);

        $listParent = $memory->getListParent();

        if (null !== $context) {
            $memory->setContext($oldContext);
        }

        $memory->setSubContext($oldSubContext);

        return $listParent;
    }
protected function getListParentDataFromMemory ( $ subContext , $ context = null ) { $ memory = $ this -> getListMemory ( ) ; $ oldContext = $ memory -> getContext ( ) ; $ oldSubContext = $ memory -> getSubContext ( ) ; if ( null !== $ context ) { $ memory -> setContext ( $ context ) ; } $ memory -> setSubContext ( $ subContext ) ; $ listParent = $ memory -> getListParent ( ) ; if ( null !== $ context ) { $ memory -> setContext ( $ oldContext ) ; } $ memory -> setSubContext ( $ oldSubContext ) ; return $ listParent ; }
Retrieves list parent data from memory and resets memory context.

@param string|null $subContext
@param string|null $context
@return array|false|null
Retrieves list parent data from memory and resets memory context .