|
noalyss
Version-6.7.2
|
manipulate the form_def's child table (form) More...
Public Member Functions | |
| __construct ($p_name=null, $p_formula=null) | |
| from_array ($p_array) | |
| Convert an array into an array of row_rapport object the fo_id is 0, position = 0, the fo_frd_id (form_id) is the one of the current object, the db is also the current one. | |
| get_info () | |
| get_parameter ($p_string) | |
| set_parameter ($p_string, $p_value) | |
Static Public Member Functions | |
| static | test_me () |
Static Private Attributes | |
| static | $variable |
manipulate the form_def's child table (form)
Definition at line 27 of file class_acc_report_row.php.
| Acc_Report_Row::__construct | ( | $ | p_name = null, |
| $ | p_formula = null |
||
| ) |
Definition at line 37 of file class_acc_report_row.php.
References set_parameter().
{
$this->set_parameter("id",0);
$this->set_parameter("name",$p_name);
$this->set_parameter("formula",$p_formula);
}
| Acc_Report_Row::from_array | ( | $ | p_array | ) |
Convert an array into an array of row_rapport object the fo_id is 0, position = 0, the fo_frd_id (form_id) is the one of the current object, the db is also the current one.
| $p_array | contains the value |
Definition at line 76 of file class_acc_report_row.php.
References $obj, $p_array, $r, $ret, db, and isNumber().
{
extract ($p_array);
$ret=array();
$ix=0;
$found=0;
foreach ( $p_array as $r)
{
if ( isset(${'form'.$ix}) && isset ( ${'text'.$ix} ))
{
$obj=new Acc_Report_Row( ${'text'.$ix},${'form'.$ix});
if ( isset(${'pos'.$ix}) && isNumber(${'pos'.$ix})==1 )
$obj->set_parameter("position",${'pos'.$ix});
else
{
$obj->set_parameter("position",$found);
$found++;
}
$obj->fo_id=0;
$obj->fo_fr_id=$this->fo_fr_id;
$obj->db=$this->db;
$ret[]=clone $obj;
}
$ix++;
}
return $ret;
}
Definition at line 66 of file class_acc_report_row.php.
{
return var_export(self::$variable,true);
}
| Acc_Report_Row::get_parameter | ( | $ | p_string | ) |
| Acc_Report_Row::set_parameter | ( | $ | p_string, |
| $ | p_value | ||
| ) |
Definition at line 54 of file class_acc_report_row.php.
Referenced by __construct().
| static Acc_Report_Row::test_me | ( | ) | [static] |
Definition at line 108 of file class_acc_report_row.php.
Acc_Report_Row::$variable [static, private] |
array(
"name"=>"fo_label",
"formula"=>"fo_formula",
"id"=>"fo_id",
"position"=>"fo_pos",
"form_id"=>"fo_fr_id",
"database"=>"db"
)
Definition at line 29 of file class_acc_report_row.php.