Esempio n. 1
0
 public function table_index_edit($tname, $field, $value, $key)
 {
     $field = manila_driver::fs_escape($field);
     $old = $this->child->file_read("tables/{$tname}/{$field}.index");
     $c = new manila_index($old);
     $c->set($value, $key);
     if ($c->was_changed()) {
         $this->child->file_write("tables/{$tname}/{$field}.index", $c->to_data());
     }
 }