Browse files

Add WFWidget->setRawValue().

  • Loading branch information...
1 parent 706d5c5 commit 206b15a877cc2a7967a6763354373145d4c63476 @apinstein committed Apr 26, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 phocoa/framework/widgets/WFWidget.php
View
11 phocoa/framework/widgets/WFWidget.php
@@ -140,6 +140,17 @@ function setValue($value)
}
/**
+ * Set the *raw* value used by the widget (bypasses formatter).
+ *
+ * This function is useful in some cases where you need to set the raw value to a specific value and don't want any normal phocoa munging to happen.
+ * @param mixed The raw value desired for the widget.
+ */
+ function setRawValue($value)
+ {
+ $this->value = $value;
+ }
+
+ /**
* Get the value for the widget.
*
* Subclasses that use {@link value, setValue} automatically get formatter support.

0 comments on commit 206b15a

Please sign in to comment.