explodes an autofigure into many dao_figure_data objects.
Each dao_figure_data object returned by get() will have its expression field replaced with a solvable expression. That is the original autofigure expression but with variables replaced with data values corresponding to the figures period and year.
The dao_figure_data objects can be fed into the data_table.
Located in /plugins/Figures/autofigure.class.php (line 44)
dao_figure_var object used to create this autofigure object
index map to access the 'period' rows
map of timestamps by row This timestamp represents the date of the most recent variable per row.
index map to access the 'variables' columns
matrix to match periods with variables
create autofigure object from db record
$dao_figure_var must represent a record that is a autofigure, (where $dao_figure_var->is_autofigure() returns true).
$variables is a list (int indexed array) of variables that are contained in the $dao_figure_var->expression field. Some external parsing code must figure this out.
add dao_figure_data object to fill the _matrix
Use this method to add regular figure_data objects that are *not* autofigures (where $dao_figure_data->is_autofigure() returns false). Returns true if $dao_figure_data was successfully added to the matrix and false if there was no empty spot for the given variable+period.
return autofigures as array of dao_figure_data objects
Each autofigure object will have its expression field set to the expression given at __construct() time. The 'expression_values' property will contain a name=>value associated array that should be used to solve the expression for that figure.
returns $_autofigure object which was used to create this instance
returns fields (period+variable) missing in the matrix
useful to organize more data, use add() to continue filling this object. Note that 'false' or '' is not considered as valid data in the matrix.
If $drop_empty_rows is true all rows with at least one empty column will be dropped from the matrix (empty elements are returned nontheless).
return $row from $_matrix with fields indexed by their name
return period string to build _matrix and corresponding maps
Note: a period string returned here is *not* equivalent to a period in the database or in dao_figure_data object. Its just used internally to blow the matrix big enough to hold everything we want to solve later.
reverse what _matrix_make_period() did This will strip the original period from the string created by _matrix_make_period(). The returned string is database compatible.
Documentation generated on Sun, 22 Aug 2010 11:20:11 +0200 by phpDocumentor 1.4.3