Exemple #1
0
 /**
  * Get an JDeveloperCreate object
  *
  * @param	string	$name	The class name
  * @param	array	$config	The configuration data
  *
  * @return	mixed	instance of JDeveloperCreate on success, false otherwise
  */
 public static function getInstance($name, $config = array())
 {
     $class = "JDeveloperCreate" . JDeveloperLoader::getClassname($name);
     if (!class_exists($class)) {
         JDeveloperLoader::import($name, JDeveloperCREATE);
     }
     if (class_exists($class)) {
         return new $class($config);
     } else {
         throw new Exception("Could not find class <i>{$class}</i>");
     }
 }