Files
luos/workflow/engine/classes/XmlForm_Field_CheckBoxTable.php
David Callizaya 0f7ab8ac98 HOR-3670
Removed non required comments from XmlForm_Field_CheckBoxTable
2017-08-11 17:42:03 -04:00

27 lines
794 B
PHP

<?php
/**
* Class XmlForm_Field_CheckBoxTable
*
*/
class XmlForm_Field_CheckBoxTable extends XmlForm_Field_Checkbox
{
/**
* Function render
*
* @author The Answer
* @access public
* @param eter string value
* @param eter string owner
* @return string
*/
public function render($value = null, $owner = null)
{
$optionName = $value;
$onclick = (($this->onclick) ? ' onclick="' . G::replaceDataField($this->onclick, $owner->values) . '" ' : '');
$html = '<input class="FormCheck" id="form[' . $this->name . '][' . $optionName . ']" name="form[' . $this->name . '][' . $optionName . ']" type=\'checkbox\' value="' . $value . '"' . $onclick . '> <span class="FormCheck"></span></input>';
return $html;
}
}