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

Public Member Functions

 Asset_Attribute_WYSIWYG ($attributeid=0, $value=null)
 
 setEditParams (&$node)
 
_createEditor ($prefix)
 
 paint ($prefix, $read_only=false)
 
 process ($prefix, $owner_id=NULL, $cmp_value=TRUE)
 
 getKeywordValue ($format='')
 
 setValue (&$value, $owner_id=NULL)
 
 paintBackendStatusIcons ($wysiwyg)
 
- Public Member Functions inherited from Asset_Attribute_Text
 Asset_Attribute_Text ($attributeid=0, $value=null)
 
 paintEditParams ($prefix, $write_access=false)
 
 processEditParams ($prefix)
 
 setEditParams (&$node)
 
 paint ($prefix, $read_only=false)
 
 process ($prefix)
 
 validateValue (&$value)
 
- 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 35 of file wysiwyg.inc.

Member Function Documentation

& _createEditor (   $prefix)

Sets the various params for this WYSIWYG editor

Parameters
string$prefixprefix for form elements
Returns
object WYSIWYG private

Definition at line 96 of file wysiwyg.inc.

Asset_Attribute_WYSIWYG (   $attributeid = 0,
  $value = null 
)

Constructor

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

Definition at line 46 of file wysiwyg.inc.

getKeywordValue (   $format = '')

Returns the content of this attribute as it should be shown in a keyword replacement

Parameters
string$formatFormat suffix
Returns
void public

Definition at line 361 of file wysiwyg.inc.

paint (   $prefix,
  $read_only = false 
)

Print the interface for filling in a value

Parameters
string$prefixprefix for the form elements
boolean$read_onlyare we just printing the value

public

Definition at line 290 of file wysiwyg.inc.

paintBackendStatusIcons (   $wysiwyg)

Prints extra backend icons at the right hand side of the menu

Parameters
Content_Type_WYSIWYG$assetthe WYSIWYG Content Type object
string$prefixprefix for form elements
Returns
void public

Definition at line 443 of file wysiwyg.inc.

process (   $prefix,
  $owner_id = NULL,
  $cmp_value = TRUE 
)

Process the interface for filling in a value

Parameters
string$prefixprefix for the form elements
int$owner_idid of the asset such as standard page and news item which own that html content
boolean$cmp_valuewhether to compare current value with new value in the decision to process

public

Definition at line 337 of file wysiwyg.inc.

setEditParams ( $node)

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

Parameters
objectXML_Tree_Node $node the XML_Tree_Node from the edit interface XML file
Returns
boolean public

Definition at line 75 of file wysiwyg.inc.

setValue ( $value,
  $owner_id = NULL 
)

Checks for hyperlinks pointing to non-live Matrix assets Sets the value of this attribute after validating

Parameters
mixed&$valuevalue to be validated
Returns
boolean public

Definition at line 417 of file wysiwyg.inc.


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