public loadPostData ( $key, $values ) : boolean | ||
return | boolean | whether the data of the control has been changed |
public function loadPostData($key, $values)
{
if (($index = $values[$this->getClientID() . '_1']) !== null) {
$index = (int) $index;
$currentIndex = $this->getActiveViewIndex();
if ($currentIndex !== $index) {
$this->setActiveViewID('');
// clear up view ID
$this->setActiveViewIndex($index);
return $this->_dataChanged = true;
}
}
return false;
}