Arquivos
wMind/mind3rd/API/Lobe/sql/sql.php
T
Felipe Nascimento de Moura 45a79c7658 fixed foreign keys problem;
fixed bug for new projects;
changes to sql generator;
2011-06-05 21:51:56 -03:00

31 linhas
839 B
PHP
Arquivo Executável

<?php
/**
* This file is part of TheWebMind 3rd generation.
*
* Notice that, these packages are being used only for documentation,
* not to organize the classes.
*
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
* @license licenses/mind3rd.license
*/
namespace Lobe\sql;
/**
* SQL file generator.
* Generates the .sql file into docs directory of the project.
*
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
* @package Lobe
* @subpackage sql
*/
class sql extends \Lobe\Neuron implements \neuron{
public function __construct(Array $data)
{
if(\API\FileManager::writeToFile('docs/create.sql', \API\Get::DDL()))
{
echo ".sql file created in docs dir for the current project, with all the DDL commands";
return true;
}
return false;
}
}