|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| Asset_Attribute_Parameter_Map ($attributeid=0, $value=NULL) | |
| setParameter ($code, $label) | |
| moveParameter ($old_code, $new_code) | |
| unsetParameter ($code) | |
| paint ($prefix, $read_only=FALSE) | |
| _printNewSourceChooser ($prefix) | |
| _printSourceInterface ($prefix, $data, $read_only=TRUE) | |
| _printParameterChooser ($prefix) | |
| process ($prefix) | |
| getParameterValue ($parameter) | |
| _getRelevantAssetid ($source) | |
| getParameters () | |
| _getSourceTypes () | |
Public Member Functions inherited from Asset_Attribute_Serialise | |
| Asset_Attribute_Serialise ($attributeid=0, $value=null) | |
| validateValue (&$value) | |
| getContent () | |
Public Member Functions inherited from Asset_Attribute | |
| Asset_Attribute ($attributeid=0, $value=NULL, $default_params=Array()) | |
| & | loadAttribute ($attributeid=0, $value=NULL, $default_params=Array()) |
| type () | |
| paint ($prefix, $read_only=FALSE) | |
| paintEditParams ($prefix, $write_access=FALSE) | |
| processEditParams ($prefix) | |
| process ($prefix) | |
| validateValue (&$value) | |
| setValue (&$value) | |
| setEditParams (&$node) | |
| setEditParam ($field, $value) | |
| setParam ($field, $value) | |
| getContent () | |
| getKeywordValue ($format='') | |
| exportToXML () | |
| exportContentsToXML () | |
Public Member Functions inherited from MySource_Object | |
| MySource_Object () | |
| __sleep () | |
| __wakeup () | |
Additional Inherited Members | |
Data Fields inherited from Asset_Attribute | |
| $id = 0 | |
| $name = '' | |
| $uniq = FALSE | |
| $description = '' | |
| $_params = Array() | |
| $_default_value = NULL | |
| $_edit_params = Array() | |
| $value = NULL | |
| $processed = FALSE | |
| $is_admin = FALSE | |
Definition at line 55 of file parameter_map.inc.
| _getRelevantAssetid | ( | $source | ) |
Return the ID of the asset we should work with given the data source specified
| string | $source | ASSET, USER or CURRENT_SITE |
Definition at line 479 of file parameter_map.inc.
| _getSourceTypes | ( | ) |
Get the list of source types - the list of sources to draw from
Definition at line 548 of file parameter_map.inc.
| _printNewSourceChooser | ( | $prefix | ) |
Paint the chooser for a new source
| string | $prefix | The prefix for the fields' names |
Definition at line 230 of file parameter_map.inc.
| _printParameterChooser | ( | $prefix | ) |
Paints the field to choose a parameter for a new mapping
| string | $prefix | The prefix for the field's name |
Definition at line 319 of file parameter_map.inc.
| _printSourceInterface | ( | $prefix, | |
| $data, | |||
$read_only = TRUE |
|||
| ) |
Paint the fields to choose a data source
| string | $prefix | The prefix for the fields' names |
| string | $data | The current value for the source-type field |
| string | $read_only | True if the interface to be printed is read-only |
Definition at line 247 of file parameter_map.inc.
| Asset_Attribute_Parameter_Map | ( | $attributeid = 0, |
|
$value = NULL |
|||
| ) |
Constructor
| int | $attributeid | the attribute id to be loaded |
| mixed | $value | the current value for the element |
Definition at line 66 of file parameter_map.inc.
| getParameters | ( | ) |
Returns the list of parameters available
Definition at line 535 of file parameter_map.inc.
| getParameterValue | ( | $parameter | ) |
Get the runtime value for the specified parameter, returns NULL is no value found
| string | $parameter | The code of the parameter we want the value for |
Definition at line 391 of file parameter_map.inc.
| moveParameter | ( | $old_code, | |
| $new_code | |||
| ) |
Moves the parameters from one code to another
| string | $old_code | Old code |
| string | $new_code | New code |
Definition at line 104 of file parameter_map.inc.
| paint | ( | $prefix, | |
$read_only = FALSE |
|||
| ) |
Prints the interface for filling in a value
| string | $prefix | prefix for the form element |
| boolean | $read_only | are we just printing the value |
Definition at line 157 of file parameter_map.inc.
| process | ( | $prefix | ) |
Processes the interface for filling in a value
| string | $prefix | prefix for the form element |
Definition at line 334 of file parameter_map.inc.
| setParameter | ( | $code, | |
| $label | |||
| ) |
Adds a new parameter to the list of those available
| string | $code | Parameter code |
| string | $label | Friendly name describing the parameter |
Definition at line 88 of file parameter_map.inc.
| unsetParameter | ( | $code | ) |
Removes a parameter from the list
| string | $code | Parameter code |
Definition at line 137 of file parameter_map.inc.