data_tableThis class builds fundamental figures into a form that is easy to process in templates.
Use the add() method to push in records from the figure_data table. When done, tell the object to process all data by calling render(). Then all data is available for display through the get_* methods.
Located in /plugins/Figures/data_table.class.php (line 43)
data_map | --data_table
array
$_class
= array() (line 127)
CSS class information for $_datatable
string
$_cycle_css_row
= 'row1' (line 135)
CSS class string used for rows, altered by _cycle_css_row()
array
$_data
= array() (line 83)
most recent figures
array
$_datatable
= array() (line 101)
the final table created by render()
bool
$_input_mode
= true (line 57)
mode of operation (input or display)
The add() method is only active in input mode while all the get_* methods are only available in display mode. You must call render() before you can get any data out. A new created object is in input mode.
array
$_periods_existing
= array() (line 75)
list of periods that exist in the system. Used as {$link $_datatable} header.
array
$_rowspan
= array() (line 115)
rowspanning information for $_datatable
array
$_summary
= array() (line 93)
less recent figures (all those where a more recent counterpart is
available in $_data)
array
$_years
= array() (line 66)
list of years for which there are figures available
Inherited from data_map
data_map::$_date
data_map::$_id
data_map::$_map
data_map::$_name
data_map::$_period
data_map::$_year
Constructor __construct (line 142)
add (line 155)
process figure_data record while in input mode
get_class (line 447)
return class information for given row or cell ($row, $col), returns false if there is no such information (the row or cell should not have any class attribute set).
The $col paramenter is optional, if given you ask for a specific cell, if ommited (default) you ask for the entire row.
get_columns (line 389)
returns column indices for given $row, use render() first
get_num_rows (line 362)
returns number of rows in result table, use render() first
get_num_years (line 189)
returns the number of years for which we have fundamental figures available
get_periods_existing (line 203)
returns list off all periods that exist in the system
get_rows (line 375)
returns row indices of result table, use render() first
get_rowspan (line 429)
return rowspanning information for given cell ($row,$col), returns false if this cell should not span at all.
get_summary (line 473)
retrieve less recent fundamental figures by $row/$col
These are those figures that have a more recent counterpart in get_value(). Returns false if there is no such data available.
get_value (line 403)
return value for a cell identified by $row/$col
get_years (line 177)
returns list off years for which we have fundamental figures available
have_summary (line 498)
returns true if summary exists for given $row/$col
render (line 223)
end input mode and render all data ready for displaying
_add_record (line 524)
add record to internal $_data or $_summary
_cycle_css_row (line 561)
returns cycled CSS class string to be used to rows, usefull when
looping through rows
_update_data (line 551)
update record in internal $_data array, make sure the old data still kept in summary.
Inherited From data_map
data_map::__construct()
data_map::get_date()
data_map::get_id()
data_map::get_name()
data_map::get_period()
data_map::get_uniq_ids()
data_map::get_year()
data_map::map_add()
Documentation generated on Sun, 22 Aug 2010 11:20:16 +0200 by phpDocumentor 1.4.3