Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add WFWidget->setRawValue().

  • Loading branch information...
commit 206b15a877cc2a7967a6763354373145d4c63476 1 parent 706d5c5
Alan Pinstein authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 phocoa/framework/widgets/WFWidget.php
11 phocoa/framework/widgets/WFWidget.php
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.