options = $options; } public function render() { $options = array(); foreach( $this->options as $k => $v ){ if( ! strlen($k) ){ $k = ' '; } $checked = in_array($k, $this->value) ? TRUE : FALSE; $name = $this->name . '[]'; $thisInput = $this->htmlFactory->makeInputCheckbox( $name, $v, $k, $checked ); $options[] = $thisInput; } $out = $this->htmlFactory->makeListInline( $options ); if( strlen($this->label) ){ $out = $this->htmlFactory->makeLabelled( $this->label, $out, $this->htmlId() ); } return $out; } }