|
| from_array ($p_array) |
| the p_array contains a row from formulaire_param_detail it will be copied into this->form. More...
|
|
|
static | factory ($p_array) |
| create an object RAPAV_dd_Formula, RAPAV_dd_Account_Tva or Rapav_dd_compute following the idx type_detail More...
|
|
static Rapav_Declaration_Detail::factory |
( |
|
$p_array | ) |
|
|
static |
create an object RAPAV_dd_Formula, RAPAV_dd_Account_Tva or Rapav_dd_compute following the idx type_detail
- Parameters
-
- Returns
- object RAPAV_dd_Formula, RAPAV_dd_Account_Tva or Rapav_dd_compute
- Exceptions
-
Definition at line 843 of file class_rapav_declaration.php.
References $ret.
Referenced by Rapav_Declaration_Param\compute(), and Rapav_Declaration_Param\compute_child().
845 switch ($p_array[
'type_detail'])
867 throw new Exception(
"Type inconnu");
870 $ret->from_array($p_array);
871 $ret->ddr_amount = 0;
handle the param_detail type Compute
handle the param_detail type Account The type_sum_account gives the type of total ...
handle the param_detail type Account The type_sum_account gives the type of total ...
handle the param_detail type Account_Tva The t_id gives the type of total
Rapav_Declaration_Detail::from_array |
( |
|
$p_array | ) |
|
the p_array contains a row from formulaire_param_detail it will be copied into this->form.
- Parameters
-
type | $p_array | match formulaire_param_detail table structure |
Definition at line 880 of file class_rapav_declaration.php.
883 $attribute = explode(
',',
'fp_id,p_id,tmp_val,tva_id,fp_formula,fp_signed,jrn_def_type,tt_id,type_detail,with_tmp_val,type_sum_account,operation_pcm_val,jrn_def_id,date_paid');
884 foreach ($attribute as $e)
886 $this->form->$e = $p_array[$e];
The documentation for this class was generated from the following file: