Arquivos
wMind/mind3rd/API/classes/theos/Gosh.php
T
Felipe Nascimento de Moura aa8e451a58 - Refactor of all the MindCommand class
- Rebuilt of all programs to use the pattern of the new format designed for the new MindCommand class
2011-04-15 23:32:55 -03:00

29 linhas
566 B
PHP
Arquivo Executável

<?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(){
}
}