Esempio n. 1
0
 function db_insert($post_array)
 {
     if ($this->field_exists('UsuarioModifica')) {
         $post_array['UsuarioModifica'] = $_SESSION["usuario"];
     }
     return parent::db_insert($post_array);
 }
 public function ajax_relation($state_info)
 {
     if (!isset($this->relation[$state_info->field_name])) {
         return false;
     }
     list($field_name, $related_table, $related_field_title, $where_clause, $order_by) = $this->relation[$state_info->field_name];
     return $this->basic_model->get_ajax_relation_array($state_info->search, $field_name, $related_table, $related_field_title, $where_clause, $order_by);
 }
 public function __construct()
 {
     parent::__construct();
 }
 function do_drive_get_primary_key($related_table = '')
 {
     return parent::get_primary_key();
 }
 function get_edit_values($primary_key_value)
 {
     $result = parent::get_edit_values($primary_key_value);
     // some driver like postgresql doesn't return string
     foreach ($result as $key => $value) {
         $result->{$key} = (string) $value;
     }
     return $result;
 }