[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] admin/inc class.so_custom.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] admin/inc class.so_custom.inc.php |
Date: |
Thu, 14 Sep 2006 18:53:32 +0000 |
CVSROOT: /sources/phpgroupware
Module name: admin
Changes by: Sigurd Nes <sigurdne> 06/09/14 18:53:32
Modified files:
inc : class.so_custom.inc.php
Log message:
validate_insert/update
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/admin/inc/class.so_custom.inc.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
Patches:
Index: class.so_custom.inc.php
===================================================================
RCS file: /sources/phpgroupware/admin/inc/class.so_custom.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- class.so_custom.inc.php 3 Apr 2006 19:19:00 -0000 1.2
+++ class.so_custom.inc.php 14 Sep 2006 18:53:32 -0000 1.3
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage admin
- * @version $Id: class.so_custom.inc.php,v 1.2 2006/04/03 19:19:00
sigurdne Exp $
+ * @version $Id: class.so_custom.inc.php,v 1.3 2006/09/14 18:53:32
sigurdne Exp $
*/
/**
@@ -249,7 +249,7 @@
$attrib['column_info']['nullable']
);
- $values = $this->bocommon->validate_db_insert($values);
+ $values = $this->db->validate_insert($values);
$this->db->query("INSERT INTO phpgw_cust_attribute
(appname,location,id,column_name, input_text,
statustext,search,list,history,attrib_sort,
datatype,precision_,scale,default_value,nullable) "
@@ -345,7 +345,7 @@
'history' => $attrib['history'],
);
- $value_set =
$this->bocommon->validate_db_update($value_set);
+ $value_set =
$this->db->validate_update($value_set);
$this->db->query("UPDATE phpgw_cust_attribute set
$value_set WHERE appname='" . $attrib['appname']. "' AND location='" .
$attrib['location']. "' AND id=" . $attrib['id'],__LINE__,__FILE__);
@@ -359,7 +359,7 @@
{
$value_set=array('column_name' =>
$attrib['column_name']);
- $value_set =
$this->bocommon->validate_db_update($value_set);
+ $value_set =
$this->db->validate_update($value_set);
$this->db->query("UPDATE phpgw_cust_attribute
set $value_set WHERE appname='" . $attrib['appname']. "' AND location='" .
$attrib['location']. "' AND id=" . $attrib['id'],__LINE__,__FILE__);
@@ -395,7 +395,7 @@
'nullable' =>
$attrib['column_info']['nullable']
);
- $value_set =
$this->bocommon->validate_db_update($value_set);
+ $value_set =
$this->db->validate_update($value_set);
$this->db->query("UPDATE phpgw_cust_attribute
set $value_set WHERE appname='" . $attrib['appname']. "' AND location='" .
$attrib['location']. "' AND id=" . $attrib['id'],__LINE__,__FILE__);
@@ -415,7 +415,7 @@
$attrib['new_choice']
);
- $values =
$this->bocommon->validate_db_insert($values);
+ $values = $this->db->validate_insert($values);
$this->db->query("INSERT INTO $choice_table
(appname,location,attrib_id,id,value) "
. "VALUES ($values)",__LINE__,__FILE__);
@@ -610,7 +610,7 @@
$custom_sort
);
- $values = $this->bocommon->validate_db_insert($values);
+ $values = $this->db->validate_insert($values);
$this->db->query("INSERT INTO phpgw_cust_function
(appname,location, id, file_name, descr, active, custom_sort) "
. "VALUES ($values)",__LINE__,__FILE__);
@@ -644,7 +644,7 @@
'active' =>
$custom_function['active']
);
- $value_set =
$this->bocommon->validate_db_update($value_set);
+ $value_set =
$this->db->validate_update($value_set);
$this->db->query("UPDATE phpgw_cust_function
set $value_set WHERE appname='$appname' AND location='$location' AND id=" .
$custom_function['id'],__LINE__,__FILE__);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] admin/inc class.so_custom.inc.php,
Sigurd Nes <=