Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Asset_Attribute_Parameter_Map Class Reference
Inheritance diagram for Asset_Attribute_Parameter_Map:
Asset_Attribute_Serialise Asset_Attribute MySource_Object

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
 

Detailed Description

Definition at line 55 of file parameter_map.inc.

Member Function Documentation

_getRelevantAssetid (   $source)

Return the ID of the asset we should work with given the data source specified

Parameters
string$sourceASSET, USER or CURRENT_SITE
Returns
int private

Definition at line 479 of file parameter_map.inc.

_getSourceTypes ( )

Get the list of source types - the list of sources to draw from

Returns
array private

Definition at line 548 of file parameter_map.inc.

_printNewSourceChooser (   $prefix)

Paint the chooser for a new source

Parameters
string$prefixThe prefix for the fields' names
Returns
void private

Definition at line 230 of file parameter_map.inc.

_printParameterChooser (   $prefix)

Paints the field to choose a parameter for a new mapping

Parameters
string$prefixThe prefix for the field's name
Returns
void private

Definition at line 319 of file parameter_map.inc.

_printSourceInterface (   $prefix,
  $data,
  $read_only = TRUE 
)

Paint the fields to choose a data source

Parameters
string$prefixThe prefix for the fields' names
string$dataThe current value for the source-type field
string$read_onlyTrue if the interface to be printed is read-only
Returns
void private

Definition at line 247 of file parameter_map.inc.

Asset_Attribute_Parameter_Map (   $attributeid = 0,
  $value = NULL 
)

Constructor

Parameters
int$attributeidthe attribute id to be loaded
mixed$valuethe current value for the element

Definition at line 66 of file parameter_map.inc.

getParameters ( )

Returns the list of parameters available

Returns
array public

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

Parameters
string$parameterThe code of the parameter we want the value for
Returns
mixed NULL|object public

Definition at line 391 of file parameter_map.inc.

moveParameter (   $old_code,
  $new_code 
)

Moves the parameters from one code to another

Parameters
string$old_codeOld code
string$new_codeNew code
Returns
void public

Definition at line 104 of file parameter_map.inc.

paint (   $prefix,
  $read_only = FALSE 
)

Prints the interface for filling in a value

Parameters
string$prefixprefix for the form element
boolean$read_onlyare we just printing the value
Returns
void public

Definition at line 157 of file parameter_map.inc.

process (   $prefix)

Processes the interface for filling in a value

Parameters
string$prefixprefix for the form element
Returns
void public

Definition at line 334 of file parameter_map.inc.

setParameter (   $code,
  $label 
)

Adds a new parameter to the list of those available

Parameters
string$codeParameter code
string$labelFriendly name describing the parameter
Returns
void public

Definition at line 88 of file parameter_map.inc.

unsetParameter (   $code)

Removes a parameter from the list

Parameters
string$codeParameter code
Returns
void public

Definition at line 137 of file parameter_map.inc.


The documentation for this class was generated from the following file: