data_mapThis class implements the mapping mechanism to keep track of the data records we already know about. Its most useful when inherited from the actual organization class
Located in /plugins/Figures/data_map.class.php (line 40)
| Class | Description |
|---|---|
data_table
|
This class builds fundamental figures into a form that is easy to process in templates. |
int
$_date
(line 87)
date of the record currently processed by map_add()
int
$_id
(line 73)
figure_var.id of the record currently processed by map_add()
This is actually the numerical id for $_name. It is better suitable as index since it avoids possible encoding issues
array
$_map
= array() (line 47)
the actual map that knows about year, id/name, period and age
string
$_name
(line 62)
name of the record currently processed by map_add()
string
$_period
(line 80)
period of the record currently processed by map_add()
int
$_year
(line 54)
year of the record currently processed by map_add(), 4 digits (YYYY)
Constructor __construct (line 94)
get_date (line 207)
return date of the last item processed by map_add()
get_id (line 160)
return figure_data id of the last item processed by map_add()
get_name (line 150)
return name of the last item processed by map_add()
get_period (line 197)
return period of the last item processed by map_add()
get_uniq_ids (line 171)
return list of all uniq figure_var.id's known by the map or false in case there is none.
get_year (line 140)
return year of the last item processed by map_add()
map_add (line 110)
add a variable to the map, return code indicates whether this data is already known (1), known and more recent (2) or not known at all (false).
NOTE:
Documentation generated on Sun, 22 Aug 2010 11:20:16 +0200 by phpDocumentor 1.4.3