/** * return a InputCheckbox for a model property * * @see InputCheckbox * @return InputCheckbox * @author Justin Palmer **/ public function check_box($property, $options = '', $checked_value = '1', $unchecked_value = '0') { $options = $this->checkForErrors($property, $options); $check = new InputCheckbox($this->getElementName($property), $options, $checked_value, $unchecked_value); $check->setChecked($this->getValue($property)); return $check; }