Esempio n. 1
0
 function name_data($data)
 {
     if ($data == "gr_pid") {
         return $this->config->relation_id["name"];
     } else {
         return parent::name_data($data);
     }
 }
Esempio n. 2
0
 function render_table($table, $id, $field)
 {
     if (!$id) {
         $id = "dhx_auto_generated_id";
     }
     $this->set_config("field", $field, true);
     $this->set_config("id", $id);
     $this->set_config("table", $table);
     $this->event->trigger("beforeParse", "");
     $this->parse_request();
     if ($this->editing) {
         $this->sql->config($this->config);
         $dp = new GridDataProcessor($this->db, $this->_log, $this->event, $this->sql, $this->access);
         $dp->process($this->form);
         $this->end_run();
     }
     $this->customize_config();
     $result = $this->event->trigger("beforeFetch", $this->config);
     if ($result === true) {
         $this->fill_query();
         $this->check_total();
         $this->render();
     } else {
         $this->output = $result;
     }
     $this->output_xml();
 }