protected function acquireItem($key, $index = false)
    {
        $retval = false;

        $nb_engine = CNabuEngine::getEngine();
        if ($nb_engine->isMainDBAvailable()) {
            $item = new CNabuModuleMorph($key);
            if ($item->isFetched()) {
                $retval = $item;
            }
        }

        return $retval;
    }
protected function acquireItem($key, $index = false)
    {
        $retval = false;

        $nb_engine = CNabuEngine::getEngine();
        if ($nb_engine->isMainDBAvailable()) {
            $item = new CNabuModuleMorph($key);
            if ($item->isFetched()) {
                $retval = $item;
            }
        }

        return $retval;
    }
protected function acquireItem ( $ key , $ index = false ) { $ retval = false ; $ nb_engine = CNabuEngine :: getEngine ( ) ; if ( $ nb_engine -> isMainDBAvailable ( ) ) { $ item = new CNabuModuleMorph ( $ key ) ; if ( $ item -> isFetched ( ) ) { $ retval = $ item ; } } return $ retval ; }
Acquires an instance of class CNabuModuleMorph from the database.
@param string $key Id of the instance to unserialize.
@param string $index Secondary index to be used if needed.
@return mixed Returns the unserialized instance if exists or false if not.
Acquires an instance of class CNabuModuleMorph from the database .