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

Public Member Functions

 Asset_Attribute_Selection ($attributeid=0, $value=NULL)
 
 setEditParams (&$node)
 
 paintEditParams ($prefix, $write_access=FALSE)
 
 processEditParams ($prefix)
 
 _ar2str ($array)
 
 _str2ar ($string)
 
 paint ($prefix, $read_only=FALSE)
 
 process ($prefix)
 
 validateValue (&$value)
 
 getOptions ()
 
 getValueArray ()
 
 hasUnlistedValue ()
 
 exportContentsToXML ()
 
- 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 46 of file selection.inc.

Member Function Documentation

_ar2str (   $array)

Convert an array to a | separated string

Parameters
array$arraythe array to be converted
Returns
string private

Definition at line 255 of file selection.inc.

_str2ar (   $string)

Convert a | separated string to an array

Parameters
string$stringthe string to be converted
Returns
array private

Definition at line 270 of file selection.inc.

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

Constructor

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

Definition at line 57 of file selection.inc.

exportContentsToXML ( )

Returns a representation of this asset's parameters, edit parameters and value as XML

Returns
string public

Definition at line 569 of file selection.inc.

getOptions ( )

Get all the options for this attribute, key => value

Returns
array public

Definition at line 524 of file selection.inc.

getValueArray ( )

Returns an array(scalar => scalar) of the current value with the individual selection values as keys and the display names as values

Returns
array public

Definition at line 538 of file selection.inc.

hasUnlistedValue ( )

Returns TRUE if this attribute permits the "other" option and this option is selected

Returns
void public

Definition at line 556 of file selection.inc.

paint (   $prefix,
  $read_only = FALSE 
)

Print the interface for filling in a value

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

Definition at line 286 of file selection.inc.

paintEditParams (   $prefix,
  $write_access = FALSE 
)

Print the interface for changing edit params

Parameters
string$prefixprefix for the form elements
string$write_accesswhether the user has write access
Returns
void public

Definition at line 119 of file selection.inc.

process (   $prefix)

Print the interface for filling in a value

Parameters
string$prefixprefix for the form element
Returns
NULL public

Definition at line 461 of file selection.inc.

processEditParams (   $prefix)

Process the interface for changing edit params

Parameters
string$prefixprefix for the form elements
Returns
array public

Definition at line 212 of file selection.inc.

setEditParams ( $node)

Takes an XML_Tree_Node from an edit interface XML file and creates the params array from it

Parameters
object&$nodean XML_Tree_Node from an edit interface XML file
Returns
boolean public

Definition at line 95 of file selection.inc.

validateValue ( $value)

Ensure the attribute being set is a valid selection

Parameters
mixed&$valuevalue to be validated
Returns
boolean public

Definition at line 489 of file selection.inc.


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