Phorm/Widget/OptionGroup.class.php
/**
	 * Returns the field as serialized HTML.
	 *
	 * @param mixed $value the form widget's value attribute
	 * @param array $attributes key=>value pairs corresponding to HTML attributes' name=>value
	 * @return string the serialized HTML
	 */
Returns the field as serialized HTML.

@param mixed $value the form widget's value attribute
@param array $attributes key=>value pairs corresponding to HTML attributes' name=>value
@return string the serialized HTML
Returns the field as serialized HTML . @param mixed $value the form widget ' s value attribute @param array $attributes key = > value pairs corresponding to HTML attributes ' name = > value @return string the serialized HTML
protected function serialize($value, array $attributes=array())
	{
		$html = "";
		foreach( $this->options as $actual => $display )
		{
			$option = new $this->widget(in_array($actual, $value));
			$html .= sprintf("<label>%s %s</label>\n", $option->html($actual, $attributes), htmlentities($display));
		}
		return $html;
	}
protected function serialize ( $ value , array $ attributes = array ( ) ) { $ html = " " ; foreach ( $ this -> options as $ actual => $ display ) { $ option = new $ this -> widget ( in_array ( $ actual , $ value ) ) ; $ html .= sprintf ( " <label>%s %s</label> \n " , $ option -> html ( $ actual , $ attributes ) , htmlentities ( $ display ) ) ; } return $ html ; }
Returns the field as serialized HTML.
Returns the field as serialized HTML .