Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a16cb8c178
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (14 sloc) 0.326 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
class DingesCheckbox extends DingesInputField {
function getValue() {
return !is_null(parent::getValue());
}

function fillAttributes() {
parent::fillAttributes();

$this->setAttribute('type', 'checkbox');
if($this->getEffectiveValue()) {
$this->setAttribute('checked', 'checked');
}
}
}
?>
Something went wrong with that request. Please try again.