[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4704 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4704 - phpcompta/trunk/include |
Date: |
Mon, 9 Jan 2012 22:03:24 +0100 (CET) |
Author: danydb
Date: 2012-01-09 22:03:24 +0100 (Mon, 09 Jan 2012)
New Revision: 4704
Modified:
phpcompta/trunk/include/class_fiche_attr.php
Log:
remove debug info
Modified: phpcompta/trunk/include/class_fiche_attr.php
===================================================================
--- phpcompta/trunk/include/class_fiche_attr.php 2012-01-09 20:52:35 UTC
(rev 4703)
+++ phpcompta/trunk/include/class_fiche_attr.php 2012-01-09 21:03:24 UTC
(rev 4704)
@@ -5,7 +5,7 @@
*
Example
@code
-
+
@endcode
*/
require_once('class_database.php');
@@ -82,18 +82,18 @@
case 'zone':
$this->ad_size=22;
break;
-
+
default:
$this->ad_size=22;
}
}
- echo $this->ad_type;
- if ( $this->ad_type == 'select')
+
+ if ( $this->ad_type == 'select')
{
if (trim($this->ad_extra)=="") throw new Exception ("La
requête SQL est vide ");
if ( preg_match('/^\h*select/i',$this->ad_extra) == 0) throw
new Exception ("La requête SQL doit commencer par SELECT ");
try{
-
+
$this->cn->exec_sql($this->ad_extra);
}catch (Exception $e)
{
@@ -103,7 +103,7 @@
}
public function save()
{
-
+
/* please adapt */
if ( $this->ad_id == 0 )
$this->insert();
@@ -165,7 +165,7 @@
public function update()
{
- try
+ try
{
$this->verify();
if ( $this->ad_id < 9000) return;
@@ -183,8 +183,8 @@
{
throw $e;
}
-
+
}
/**
address@hidden load a object
@@ -224,7 +224,7 @@
$sql="delete from jnt_fic_attr where ad_id=$1";
$res=$this->cn->exec_sql($sql,array($this->ad_id));
-
+
$sql="delete from attr_def where ad_id=$1";
$res=$this->cn->exec_sql($sql,array($this->ad_id));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4704 - phpcompta/trunk/include,
phpcompta-dev <=