Perforce Chronicle 2012.2/486814
API Documentation
|
Simply renders the value of an element. More...
Public Member Functions | |
render ($content) | |
Return the value of the element for display. |
Simply renders the value of an element.
P4Cms_Form_Decorator_Value::render | ( | $ | content | ) |
Return the value of the element for display.
Default behavior is to replace existing content, but placement can be set to append or prepend instead.
string | $content | The content to render. |
{ switch ($this->getPlacement()) { case self::APPEND: return $content . $this->getElement()->getValue(); case self::PREPEND: return $this->getElement()->getValue() . $content; default: return $this->getElement()->getValue(); } }