public loadPostData ( $key, $values ) : boolean | ||
return | boolean | whether the data of the control has been changed |
public function loadPostData($key, $values)
{
$checked = $this->getChecked();
if ($newChecked = isset($values[$key])) {
$this->setValue($values[$key]);
}
$this->setChecked($newChecked);
return $this->_dataChanged = $newChecked !== $checked;
}