public function acquireItem($key, $index = false)
    {
        if ($index === self::INDEX_KEY) {
            $nb_site = CNabuEngine::getEngine()->getApplication()->getRequest()->getSite();
            $retval = CNabuSiteTarget::findByKey($nb_site, $key);
        } else {
            $retval = parent::acquireItem($key, $index);
        }

        return $retval;
    }
public function acquireItem($key, $index = false)
    {
        if ($index === self::INDEX_KEY) {
            $nb_site = CNabuEngine::getEngine()->getApplication()->getRequest()->getSite();
            $retval = CNabuSiteTarget::findByKey($nb_site, $key);
        } else {
            $retval = parent::acquireItem($key, $index);
        }

        return $retval;
    }
public function acquireItem ( $ key , $ index = false ) { if ( $ index === self :: INDEX_KEY ) { $ nb_site = CNabuEngine :: getEngine ( ) -> getApplication ( ) -> getRequest ( ) -> getSite ( ) ; $ retval = CNabuSiteTarget :: findByKey ( $ nb_site , $ key ) ; } else { $ retval = parent :: acquireItem ( $ key , $ index ) ; } return $ retval ; }
Overrides temporally this method to support nb_site_target_key acquisitions.
Overrides temporally this method to support nb_site_target_key acquisitions .