manage the table forecast_item contains the items, the item are part of category of forecast_cat, which are part of Forecast
More...
manage the table forecast_item contains the items, the item are part of category of forecast_cat, which are part of Forecast
- See also
- Forecast Forecast_Cat
Definition at line 34 of file forecast_item.class.php.
◆ __construct()
Forecast_Item::__construct |
( |
|
$p_init, |
|
|
|
$p_id = 0 |
|
) |
| |
◆ delete()
Forecast_Item::delete |
( |
| ) |
|
◆ get_info()
Forecast_Item::get_info |
( |
| ) |
|
◆ get_parameter()
Forecast_Item::get_parameter |
( |
|
$p_string | ) |
|
Definition at line 49 of file forecast_item.class.php.
51 if ( array_key_exists($p_string,self::$variable) )
53 $idx=self::$variable[$p_string];
57 throw new Exception(
"Attribut inexistant $p_string");
References $idx.
Referenced by save().
◆ insert()
Forecast_Item::insert |
( |
| ) |
|
Definition at line 91 of file forecast_item.class.php.
93 if ( $this->
verify() != 0 )
return;
95 $sql=
"INSERT INTO forecast_item(
96 fi_text, fi_account, fi_card, fi_order, fc_id, fi_amount,
98 VALUES ($1, $2, $3, $4, $5, $6, $7,$8) returning fi_id;";
101 array($this->fi_text,$this->fi_account,$this->fi_card,$this->fi_order,$this->fc_id,$this->fi_amount,$this->fi_debit,$this->fi_pid)
References $res, $sql, cn, DatabaseCore\fetch_result(), and verify().
Referenced by save().
◆ load()
Definition at line 128 of file forecast_item.class.php.
131 $sql=
"SELECT fi_id, fi_text, fi_account, fi_card, fi_order, fc_id, fi_amount,
133 FROM forecast_item where fi_id=$1";
References $idx, $res, $row, $sql, $value, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
◆ save()
◆ set_parameter()
Forecast_Item::set_parameter |
( |
|
$p_string, |
|
|
|
$p_value |
|
) |
| |
Definition at line 59 of file forecast_item.class.php.
61 if ( array_key_exists($p_string,self::$variable) )
63 $idx=self::$variable[$p_string];
67 throw new Exception(
"Attribut inexistant $p_string");
References $idx.
◆ test_me()
static Forecast_Item::test_me |
( |
| ) |
|
|
static |
◆ update()
Forecast_Item::update |
( |
| ) |
|
Definition at line 106 of file forecast_item.class.php.
108 if ( $this->
verify() != 0 )
return;
110 $sql=
"UPDATE forecast_item
111 SET fi_text=$1, fi_account=$2, fi_card=$3, fi_order=$4, fc_id=$5,
112 fi_amount=$6, fi_debit=$7,fi_pid=$8
115 array($this->fi_text,
References $res, $sql, cn, and verify().
Referenced by save().
◆ verify()
Forecast_Item::verify |
( |
| ) |
|
◆ $cn
◆ $variable
Initial value:=array ("id"=>"fi_id","text"=>"fi_text","account"=>"fi_account",
"card"=>"fi_card","order"=>"fi_order","cat_id"=>"fc_id","amount"=>"fi_amount","debit"=>"fi_debit","periode"=>"fi_pid")
Definition at line 37 of file forecast_item.class.php.
The documentation for this class was generated from the following file: