29 linhas
566 B
PHP
29 linhas
566 B
PHP
<?php
|
|
|
|
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
namespace theos;
|
|
/**
|
|
* Description of Gosh
|
|
*
|
|
* @author felipe
|
|
*/
|
|
class Gosh {
|
|
public $bdGen= null;
|
|
|
|
public function generate($data)
|
|
{
|
|
//$this->dbGen->generateDatabase(\Mind::$currentProject);
|
|
$program = strtolower(array_shift($data));
|
|
$program = 'Lobe\\'.$program.'\\'.$program;
|
|
if(\class_exists($program))
|
|
new $program($data);
|
|
else
|
|
throw new \MindException("Invalid lobe program: ".$program);
|
|
}
|
|
|
|
public function __construct(){
|
|
}
|
|
} |