Arquivos
wMind/mind3rd/API/Lobe/sql/sql.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

26 linhas
692 B
PHP
Arquivo Executável

<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
namespace Lobe\sql;
/**
* Description of sql
*
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
*/
class sql extends \Lobe\Neuron implements \neuron{
public function __construct(Array $data)
{
$projectData= \Mind::$currentProject;
\DQB\QueryFactory::$showHeader= true;
\DQB\QueryFactory::setUp(\Mind::$currentProject['database_drive']);
\DQB\QueryFactory::buildQuery('*');
$qrs= \DQB\QueryFactory::getCompleteQuery(false, true, 'string');
$file= \theos\ProjectFileManager::createFile('docs/create.sql');
return \fwrite($file, $qrs) !== false;
}
}