protected function configureControl($control, $name, $value)
{
if (strncasecmp($name, 'on', 2) === 0) {
// is an event
$this->configureEvent($control, $name, $value, $control);
} else {
if (($pos = strrpos($name, '.')) === false) {
// is a simple property or custom attribute
$this->configureProperty($control, $name, $value);
} else {
// is a subproperty
$this->configureSubProperty($control, $name, $value);
}
}
}