protected final function setChildControlsCreated($value)
{
if ($value) {
$this->_flags |= self::IS_CHILD_CREATED;
} else {
if ($this->getHasControls() && $this->_flags & self::IS_CHILD_CREATED) {
$this->getControls()->clear();
}
$this->_flags &= ~self::IS_CHILD_CREATED;
}
}