* This framework works in conjunction with ISSO.Printer to create a unique
* CSS editor enviornment.
*
+* Hooks:
+* $this->fetch_modified_link_hook - Required hook that is run when
+* preparing revert links for properties
+*
* @author Iris Studios, Inc.
* @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc.
* @version $Revision$
'text-decoration' => 'text_decoration'
);
+ /**
+ * Hook ran in fetch_modified_link; takes three params: $descriptor, $property, $name
+ * @var string
+ * @access private
+ */
+ var $fetch_modified_link_hook = ':=NO METHOD=:';
+
+ /**
+ * Module fields
+ * @var array
+ * @access private
+ */
+ var $fields = array(
+ 'fetch_modified_link_hook' => array(REQ_YES, null, false)
+ );
+
// ###################################################################
/**
* Constructor
$this->__construct($registry);
}
+ // ###################################################################
+ /**
+ * Sets an ISSO field
+ *
+ * @access public
+ *
+ * @param string Field name
+ * @param mixed Value of the field
+ */
+ function set($name, $value)
+ {
+ $this->registry->do_set($name, $value, 'printer_css');
+ }
+
+ // ###################################################################
+ /**
+ * Gets an ISSO field
+ *
+ * @access public
+ *
+ * @param string Field name
+ *
+ * @return mixed Value of the field
+ */
+ function get($fieldname)
+ {
+ return $this->registry->do_get($fieldname, 'printer_css');
+ }
+
// ###################################################################
/**
* Adds a CSS information block to the array for later use
if ($status)
{
- return '<em>' . $name . '</em>';
+ if (is_callable($this->fetch_modified_link_hook))
+ {
+ return call_user_func($this->fetch_modified_link_hook, $descriptor, $property, $name);
+ }
+ else
+ {
+ trigger_error('Printer_CSS::fetch_modified_link() needs to have the fetch_modified_link_hook( $descriptor , $property , $name ) defined', E_USER_ERROR);
+ }
}
else
{