controllers/oxpspaymorrowresource.php
protected function _getResource( $sResourcePath, $blNoCache = false )
    {
        $aResponse = null;

        if ( !$blNoCache ) {
            /** @var OxpsPaymorrowResourceCache $oResourceCache */
            $oResourceCache = oxNew( 'OxpsPaymorrowResourceCache' );
            $aResponse = $oResourceCache->pop( $sResourcePath );
        }

        if ( empty( $aResponse ) ) {

            /** @var OxpsOxid2Paymorrow $oOxidToPm */
            $oOxidToPm = oxNew( 'OxpsOxid2Paymorrow' );
            $aResponse = $oOxidToPm->getBuiltPaymorrowResourceProxy()->getResource( $sResourcePath );

            if ( !$blNoCache ) {
                $oResourceCache->push( $sResourcePath, $aResponse );
            }
        }

        $this->_resourceResponse( $aResponse );
    }
protected function _getResource( $sResourcePath, $blNoCache = false )
    {
        $aResponse = null;

        if ( !$blNoCache ) {
            /** @var OxpsPaymorrowResourceCache $oResourceCache */
            $oResourceCache = oxNew( 'OxpsPaymorrowResourceCache' );
            $aResponse = $oResourceCache->pop( $sResourcePath );
        }

        if ( empty( $aResponse ) ) {

            /** @var OxpsOxid2Paymorrow $oOxidToPm */
            $oOxidToPm = oxNew( 'OxpsOxid2Paymorrow' );
            $aResponse = $oOxidToPm->getBuiltPaymorrowResourceProxy()->getResource( $sResourcePath );

            if ( !$blNoCache ) {
                $oResourceCache->push( $sResourcePath, $aResponse );
            }
        }

        $this->_resourceResponse( $aResponse );
    }
protected function _getResource ( $ sResourcePath , $ blNoCache = false ) { $ aResponse = null ; if ( ! $ blNoCache ) { /** @var OxpsPaymorrowResourceCache $oResourceCache */ $ oResourceCache = oxNew ( 'OxpsPaymorrowResourceCache' ) ; $ aResponse = $ oResourceCache -> pop ( $ sResourcePath ) ; } if ( empty ( $ aResponse ) ) { /** @var OxpsOxid2Paymorrow $oOxidToPm */ $ oOxidToPm = oxNew ( 'OxpsOxid2Paymorrow' ) ; $ aResponse = $ oOxidToPm -> getBuiltPaymorrowResourceProxy ( ) -> getResource ( $ sResourcePath ) ; if ( ! $ blNoCache ) { $ oResourceCache -> push ( $ sResourcePath , $ aResponse ) ; } } $ this -> _resourceResponse ( $ aResponse ) ; }
Get a resource by path and output the resource content.

@param string $sResourcePath
@param bool   $blNoCache     forces not to cache resource
Get a resource by path and output the resource content .