24 abstract public function loadView($viewName, $pData=NULL, $asString=
false);
25 abstract protected function showSimpleMessage($content,$type,$icon=
"info",$timeout=NULL,$staticName=null);
31 foreach ($models as $model){
35 $result[$table]=$simpleM.
"[".$table.
"]";
37 $result[$table]=$simpleM;
49 $generator->createDatabase($db);
50 $frm=$this->jquery->semantic()->htmlForm(
"form-sql");
51 $text=$frm->addElement(
"sql", $generator->__toString(),
"SQL script",
"div",
"ui segment editor");
52 $text->getField()->setProperty(
"style",
"background-color: #002B36;");
53 $bts=$this->jquery->semantic()->htmlButtonGroups(
"buttons");
54 $bts->addElement(
"Generate database")->addClass(
"green");
55 if(isset($actualDb) && $actualDb!==$db){
56 $btExport=$bts->addElement(
"Export datas script : ".$actualDb.
" => ".$db);
57 $btExport->addIcon(
"exchange");
58 $btExport->postOnClick($this->
_getAdminFiles()->getAdminBaseRoute().
"/exportDatasScript",
"{}",
"#div-datas");
61 $this->jquery->exec(
"setAceEditor('sql');",
true);
62 $this->jquery->compile($this->view);
69 $frm=$this->jquery->semantic()->htmlForm(
"form-sql-datas");
70 $text=$frm->addElement(
"datas-sql", $dbExport->exports(),
"Datas export script",
"div",
"ui segment editor");
71 $text->getField()->setProperty(
"style",
"background-color: #002B36;");
72 $this->jquery->exec(
"setAceEditor('datas-sql');",
true);
73 $this->jquery->compile($this->view);
static isPost()
Returns true if the request is sent by the POST method.
loadView($viewName, $pData=NULL, $asString=false)
static getModels(&$config, $silent=false)
static isConnected()
Returns true if the connection to the database is estabished.
static getTableName($class)
showSimpleMessage($content, $type, $icon="info", $timeout=NULL, $staticName=null)
static getClassSimpleName($classnameWithNamespace)