|
static | $variable =array("code"=>"pcode","value"=>"pvalue","account"=>'paccount') |
|
Definition at line 32 of file class_tva_parameter.php.
Tva_Parameter::__construct |
( |
|
$p_init | ) |
|
Tva_Parameter::display |
( |
| ) |
|
show the content of the table tva_belge.parameter
Definition at line 123 of file class_tva_parameter.php.
References $cn, $r, and $res.
126 $res=$this->cn->get_array(
"select pcode from tva_belge.parameter");
129 require_once(
'form_parameter.php');
130 $r=ob_get_contents();
Tva_Parameter::exist_pcmn |
( |
|
$p_code | ) |
|
check that this accounting does exist in the accounting plan
- Parameters
-
- Returns
- the number of row found (0 if none)
Definition at line 116 of file class_tva_parameter.php.
117 $count=$this->cn->get_value(
'select count(*) from tmp_pcmn where pcm_val::text like $1',array($p_code));
Tva_Parameter::get_info |
( |
| ) |
|
Tva_Parameter::get_parameter |
( |
|
$p_string | ) |
|
Definition at line 38 of file class_tva_parameter.php.
39 if ( array_key_exists($p_string,self::$variable) ) {
40 $idx=self::$variable[$p_string];
44 throw new Exception(
"Attribut inexistant $p_string");
Tva_Parameter::insert |
( |
| ) |
|
Definition at line 98 of file class_tva_parameter.php.
References $res, and $sql.
100 $sql=
"select pcode from tva_belge.parameter where pcode=$1";
102 $res=$this->cn->get_array(
107 if ( count(
$res) == 0 )
return -1;
108 for ($i=0;$i<count(
$res);$i++) { $this->pcode=
$res[$i][
'pcode'];$this->pvalue=
$res[$i][
'pvalue'];$this->paccount=
$res[$i][
'paccount']; }
Tva_Parameter::seek |
( |
|
$cond, |
|
|
|
$p_array = null |
|
) |
| |
Tva_Parameter::set_parameter |
( |
|
$p_string, |
|
|
|
$p_value |
|
) |
| |
Definition at line 46 of file class_tva_parameter.php.
47 if ( array_key_exists($p_string,self::$variable) ) {
48 $idx=self::$variable[$p_string];
52 throw new Exception(
"Attribut inexistant $p_string");
static Tva_Parameter::test_me |
( |
| ) |
|
|
static |
Tva_Parameter::update |
( |
| ) |
|
Tva_Parameter::verify |
( |
| ) |
|
Tva_Parameter::$variable =array("code"=>"pcode","value"=>"pvalue","account"=>'paccount') |
|
staticprivate |
The documentation for this class was generated from the following file: