コード例 #1
0
ファイル: Producto_model.php プロジェクト: jgarceso/convivir
 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);
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #4
0
 function do_drive_get_primary_key($related_table = '')
 {
     return parent::get_primary_key();
 }
コード例 #5
0
 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;
 }