Beispiel #1
0
 function read_db_record($db)
 {
     $this->set_id($db->f($this->key_field->get_name()));
     $this->read_array($db->row, "", SRC_DATABASE);
     $this->all_row_fields = $db->row;
     $have_perm = $this->have_perm(PERM_READ);
     if (!$have_perm) {
         $m = new meta();
         $meta_tables = (array) $m->get_tables();
         $meta_tables = array_keys($meta_tables);
         if (in_array($this->data_table, (array) $meta_tables)) {
             return true;
         }
         $this->clear();
     }
     return $have_perm;
 }