Example #1
0
 /**
  * 
  */
 private function getDbContents()
 {
     if (Table::exists($this->name)) {
         $names = Config::getDB()->GetColumnNames($this->name);
         foreach ($names as $chiave => $nome) {
             $valori_var = $this->getDbVarInfoByDB($nome);
             $field_tmp = new Field($valori_var["type"]);
             $field_tmp->setNullable($valori_var["nullable"]);
             $field_tmp->setDefault($valori_var["default"]);
             $field_tmp->setName($nome);
             if ($valori_var["key"]) {
                 $field_tmp->setKey($valori_var["key"]);
             }
             $field_tmp->setExtra($valori_var["extra"]);
             $this->fieldsindb[$nome] = $field_tmp;
         }
     }
 }