public function getInstance($className)
    {
        $className = self::prepareClassName($className);
        
        if (strpos($className, '\\Zepi\\Turbo') === 0) {
            $instance = $this->getCoreInstance($className);
        } else {
            $module = $this->moduleManager->getModuleByClassName($className);
            
            if ($module === false) {
                throw new Exception('Cannot find the module for the given class name "' . $className . '".');
            }
            
            $instance = $module->getInstance($className);
        }
        
        if (!is_object($instance)) {
            throw new Exception('Instance for class name "' . $className . '" isn\'t an object!');
        }
        
        return $instance;
    }
public function getInstance($className)
    {
        $className = self::prepareClassName($className);
        
        if (strpos($className, '\\Zepi\\Turbo') === 0) {
            $instance = $this->getCoreInstance($className);
        } else {
            $module = $this->moduleManager->getModuleByClassName($className);
            
            if ($module === false) {
                throw new Exception('Cannot find the module for the given class name "' . $className . '".');
            }
            
            $instance = $module->getInstance($className);
        }
        
        if (!is_object($instance)) {
            throw new Exception('Instance for class name "' . $className . '" isn\'t an object!');
        }
        
        return $instance;
    }
public function getInstance ( $ className ) { $ className = self :: prepareClassName ( $ className ) ; if ( strpos ( $ className , '\\Zepi\\Turbo' ) === 0 ) { $ instance = $ this -> getCoreInstance ( $ className ) ; } else { $ module = $ this -> moduleManager -> getModuleByClassName ( $ className ) ; if ( $ module === false ) { throw new Exception ( 'Cannot find the module for the given class name "' . $ className . '".' ) ; } $ instance = $ module -> getInstance ( $ className ) ; } if ( ! is_object ( $ instance ) ) { throw new Exception ( 'Instance for class name "' . $ className . '" isn\'t an object!' ) ; } return $ instance ; }
Returns an instance of an object. If the module for the object
isn't initialized, the function will load the module and
initialize the module.

@access public
@param string $className
@return mixed

@throws \Zepi\Turbo\Exception Cannot find the module for the given class name.
@throws \Zepi\Turbo\Exception Instance isn't an object!
Returns an instance of an object . If the module for the object isn t initialized the function will load the module and initialize the module .