23 abstract public function loadView($viewName, $pData=NULL, $asString=
false);
24 abstract protected function showSimpleMessage($content,$type,$icon=
"info",$timeout=NULL,$staticName=null);
30 foreach ($models as $model){
34 $result[$table]=$simpleM.
"[".$table.
"]";
36 $result[$table]=$simpleM;
48 $generator->createDatabase($db);
49 $frm=$this->jquery->semantic()->htmlForm(
"form-sql");
50 $text=$frm->addElement(
"sql", $generator->__toString(),
"SQL script",
"div",
"ui segment editor");
51 $text->getField()->setProperty(
"style",
"background-color: #002B36;");
52 $bts=$this->jquery->semantic()->htmlButtonGroups(
"buttons");
53 $bts->addElement(
"Generate database")->addClass(
"green");
54 if(isset($actualDb) && $actualDb!==$db){
55 $btExport=$bts->addElement(
"Export datas script : ".$actualDb.
" => ".$db);
56 $btExport->addIcon(
"exchange");
57 $btExport->postOnClick($this->
_getAdminFiles()->getAdminBaseRoute().
"/exportDatasScript",
"{}",
"#div-datas");
60 $this->jquery->exec(
"setAceEditor('sql');",
true);
61 $this->jquery->compile($this->view);
68 $frm=$this->jquery->semantic()->htmlForm(
"form-sql-datas");
69 $text=$frm->addElement(
"datas-sql", $dbExport->exports(),
"Datas export script",
"div",
"ui segment editor");
70 $text->getField()->setProperty(
"style",
"background-color: #002B36;");
71 $this->jquery->exec(
"setAceEditor('datas-sql');",
true);
72 $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)