protected function unloadRecursive()
{
if (!($this->_flags & self::IS_ID_SET)) {
$this->_id = '';
}
if ($this->getHasControls()) {
foreach ($this->_rf[self::RF_CONTROLS] as $control) {
if ($control instanceof TControl) {
$control->unloadRecursive();
}
}
}
if (isset($this->_rf[self::RF_ADAPTER])) {
$this->_rf[self::RF_ADAPTER]->onUnload(null);
} else {
$this->onUnload(null);
}
}