Ejemplo n.º 1
0
     $output .= "    \$this->hidden = " . $hidden . ";\n";
 }
 if (!empty($table_datum['parent'])) {
     $output .= "    \$this->parent ='" . $table_datum['parent'] . "';\n";
 }
 if (!empty($table_datum['child'])) {
     $output .= "    \$this->child ='" . $table_datum['child'] . "';\n";
 }
 if (!empty($table_datum['restrictby'])) {
     $output .= "    if (\$_SESSION['idalm_role'] !== 'full') \$this->filter = \"" . $table_datum['idalm_table'] . '.' . $table_datum['restrictby'] . "='\".\$_SESSION['idalm_user'].\"'\";\n";
 }
 $output .= "    \$this->title ='" . $table_datum['alm_table'] . "';\n";
 if (!empty($table_datum['orden'])) {
     $output .= "    \$this->order ='" . $table_datum['orden'] . "';\n";
 }
 $data = $alm_column->readDataFilter("alm_column.idalm_table='" . $table_datum['idalm_table'] . "'");
 if ($data) {
     foreach ($data as $datum) {
         if ($datum['pk'] == 't') {
             $datum['pk'] = 1;
         }
         if ($datum['pk'] == 'f') {
             $datum['pk'] = 0;
         }
         if (empty($datum['fk'])) {
             $datum['fk'] = 0;
         } else {
             $datum['fk'] = "'" . $datum['fk'] . "'";
         }
         $extra = array();
         #$search = ($table_datum['search'] == 't') ? 'true' : 'false';