for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ajax\semantic\html\collections\form;
use Ajax\semantic\html\collections\form\HtmlFormInput;
/**
* Abstract class for Semantic Radio and Checkbox
* @author jc
* @version 1.001
*/
abstract class AbstractHtmlFormRadioCheckbox extends HtmlFormField {
protected $_input;
public function __construct($identifier, $name=NULL,$label=NULL,$value=NULL) {
$input=new HtmlFormInput($identifier,$label,"checkbox",$value);
parent::__construct("rField-".$identifier, $input);
if(isset($label)){
$input->swapLabel();
$label=$input->getLabel();
$label->setClass="hidden";
$label->setProperty("tabindex",0);
}
$this->_input=$input;
public function getInput() {
return $this->_input;
public function setInput($_input) {
$this->_input=$_input;
return $this;