switch ($o->xtype) {
case "ComboBox":
if (!isset($o->{'String hiddenName'})) {
- continue;
+ continue 2;
}
$this->fields[] = $o->{'String hiddenName'};
// fall throught..
//var_Dump(substr($item,-3,2));
switch(true) {
case (!strlen($item)):
- continue;
+ continue 2;
case ($inscript && ($item != '{end:}')):
$ret[count($ret)-1] .= $item;
- continue;
+ continue 2;
case ($inscript && ($item == '{end:}')):
$inscript = false;
- continue;
+ continue 2;
case ($item[0] != '{'):
if (!strlen(trim($item))) {
- continue;
+ continue 2;
}
$ret[] = $in . "ret += ". json_encode($item) . ";";
- continue;
+ continue 2;
case ($item == '{script:}'):
$inscript = true;
$ret[] = '';
- continue;
+ continue 2;
case ($item[1] == '!'):
$ret[] = $in . substr($item,2,-1) .';';
- continue;
+ continue 2;
case (substr($item,1,3) == 'if('):
$ret[] = $in . substr($item,1,-1) . ' {';
$indent++;
- continue;
+ continue 2;
case (substr($item,1,5) == 'else:'):
$indent--;
$in = str_repeat(" ", $indent);
$ret[] = $in . "} else { ";
$indent++;
- continue;
+ continue 2;
case (substr($item,1,4) == 'end:'):
$indent--;
$fstart = -1;
$ret = &$out;
}
- continue;
+ continue 2;
case (substr($item,1,7) == 'return:'):
$ret[] = $in . "return;";
- continue;
+ continue 2;
case (substr($item,1,9) == 'function:'):
$fstart = $indent;
$ret[] = $in . "var $name = function (" . $body . '{';
- continue;
+ continue 2;
default:
if (substr($item,-3,2) == ':h') {
$ret[] = $in . "ret += ". substr($item,1,-3) . ';';
- continue;
+ continue 2;
}
if (substr($item,-3,2) == ':b') {
$ret[] = $in . "ret += Roo.util.Format.htmlEncode(". substr($item,1,-3).').split("\n").join("<br/>\n");';
- continue;
+ continue 2;
}
$ret[] = $in . "ret += Roo.util.Format.htmlEncode(". substr($item,1,-1).');';
- continue;
+ continue 2;
}
$x->whereAdd("(on_id = $oid OR
on_id IN ( SELECT distinct(id) FROM Documents WHERE original = $o )
)");
- continue;
+ continue 2;
}
$x->on_id = $val;
}
- continue;
+ continue 2;
}
}
if (!empty($q_filtered)) {
// this will trigger errors about freetext indexes - we will have to remove them manually.?
// otherwise we need to do an sql query to find them, then remove them (not really worth it as it only affects really old code..)
-
+ echo "Run extensions\n";
+
$this->runExtensions();
if (empty($opts['data-only'])) {
+ echo "Import SQL\n";
$this->importSQL();
}
if (!empty($opts['only-module-sql'])) {
return;
}
-
+ echo "run Update Modules Data\n";
$this->runUpdateModulesData();
if (!file_exists(__DIR__.'/UpdateDatabase/'. $scls .'.php')) {
return;
}
+ echo "Running : {$fn}\n";
require_once $fn;
$c = new $cls();
function __construct()
{
-
+ // this might get run before we have imported the database
+ // and hence not have any db.
$this->loadIniFiles(); //?? shared???
+
$dbo = DB_DataObject::factory('core_enum');
+
+
+
if (is_a($dbo, 'PDO_DataObject')) {
$this->views = $dbo->generator()->introspection()->getListOf('views');
// update the engine first - get's around 1000 character limit on indexes..cd
// however - Innodb does not support fulltext indexes, so this may fail...
$this->updateEngine();
-
+
$this->updateCharacterSet();
-
-
+
}
function loadIniFiles()
{
$db = DB_DataObject::factory('core_enum');
$db->query("show variables like 'innodb_file_per_table'");
+
$db->fetch();
$pg = HTML_FlexyFramework::get()->page;
$views = $this->views;
-
+ echo "a3\n";
foreach (array_keys($this->schema) as $tbl){
if(strpos($tbl, '__keys') !== false ){
var $dburl;
var $schema;
- var $links;
+ var $links = array();
function __construct()
{
$iniCache = isset( $ff->PDO_DataObject) ? $ff->PDO_DataObject['schema_location'] : $ff->DB_DataObject[$dbini];
-
+
+ if (strpos($iniCache, DIRECTORY_SEPARATOR) !== false) {
+ echo "SKIP links code - cached ini file has not been created\n";
+ return;
+ }
$this->schema = parse_ini_file($iniCache, true);
$this->links = parse_ini_file(preg_replace('/\.ini$/', '.links.ini', $iniCache), true);