noalyss Version-9
|
Class rapport Create, view, modify and parse report. More...
Public Member Functions | |
__construct ($p_cn, $p_id=-1) | |
Constructor. More... | |
create () | |
display a form for creating a new report by importing it or set manually More... | |
delete () | |
exist ($p_id=0) | |
check if a report exist More... | |
export_csv ($p_file) | |
write to a file the definition of a report More... | |
get_form_definition () | |
get_list () | |
get a list from form_definition of all defined form More... | |
get_name () | |
Return the report's name. More... | |
get_row ($p_start, $p_end, $p_type_date) | |
return all the row and parse formula from a report More... | |
input_name ($name) | |
load () | |
the fr_id MUST be set before calling More... | |
make_array () | |
To make a SELECT button with the needed value, it is used by the SELECT widget. More... | |
save () | |
save into form and form_def More... | |
set_form_definition ($form_definition) | |
upload () | |
upload a definition of a report and insert it into the database More... | |
Data Fields | |
$nb | |
$row | |
Private Attributes | |
$form_definition | |
Class rapport Create, view, modify and parse report.
Definition at line 32 of file acc_report.class.php.
Acc_Report::__construct | ( | $p_cn, | |
$p_id = -1 |
|||
) |
Constructor.
Definition at line 41 of file acc_report.class.php.
References $p_id.
Acc_Report::create | ( | ) |
display a form for creating a new report by importing it or set manually
Definition at line 242 of file acc_report.class.php.
Acc_Report::delete | ( | ) |
Definition at line 133 of file acc_report.class.php.
Acc_Report::exist | ( | $p_id = 0 | ) |
check if a report exist
$p_id,optional,if | given check the report with this fr_id |
Definition at line 231 of file acc_report.class.php.
References $p_id, $ret, and DatabaseCore\num_row().
Acc_Report::export_csv | ( | $p_file | ) |
write to a file the definition of a report
p_file | is the file name (default php://output) |
Definition at line 173 of file acc_report.class.php.
References $array, $row, and load().
Acc_Report::get_form_definition | ( | ) |
Acc_Report::get_list | ( | ) |
get a list from form_definition of all defined form
Definition at line 143 of file acc_report.class.php.
References $array, $obj, $ret, $row, $sql, $tmp, DatabaseCore\fetch_all(), and DatabaseCore\num_row().
Acc_Report::get_name | ( | ) |
Return the report's name.
Definition at line 57 of file acc_report.class.php.
Acc_Report::get_row | ( | $p_start, | |
$p_end, | |||
$p_type_date | |||
) |
return all the row and parse formula from a report
$p_start | start periode |
$p_end | end periode |
$p_type_date | type of the date : periode (or 0) or calendar (or 1) |
Definition at line 68 of file acc_report.class.php.
References $i, $Max, $p_end, $p_start, $Res, elseif, DatabaseCore\fetch_array(), DatabaseCore\num_row(), and Impress\parse_formula().
Acc_Report::input_name | ( | $name | ) |
IText | $name |
Definition at line 250 of file acc_report.class.php.
References $name, and Dossier\id().
Acc_Report::load | ( | ) |
the fr_id MUST be set before calling
Definition at line 128 of file acc_report.class.php.
Referenced by export_csv().
Acc_Report::make_array | ( | ) |
To make a SELECT button with the needed value, it is used by the SELECT widget.
Definition at line 163 of file acc_report.class.php.
References $sql.
Acc_Report::save | ( | ) |
save into form and form_def
Definition at line 120 of file acc_report.class.php.
Acc_Report::set_form_definition | ( | $form_definition | ) |
Definition at line 50 of file acc_report.class.php.
References $form_definition.
Acc_Report::upload | ( | ) |
upload a definition of a report and insert it into the database
Definition at line 197 of file acc_report.class.php.
References $array, $cn, $data, $file, $id, $obj, alert(), and noalyss_strlentrim().
|
private |
form_definition_sql
Definition at line 35 of file acc_report.class.php.
Referenced by get_form_definition(), and set_form_definition().
Acc_Report::$nb |
Definition at line 37 of file acc_report.class.php.
Acc_Report::$row |
Definition at line 36 of file acc_report.class.php.
Referenced by export_csv(), and get_list().