public function getTable()
{
if ($this->_table === null) {
$table = $this->getParent();
while (!$table instanceof TTable && $table !== null) {
$table = $table->getParent();
}
if ($table instanceof TTable) {
$this->_table = $table;
} else {
throw new TConfigurationException('tactivetablerow_control_outoftable', get_class($this), $this->getUniqueID());
}
}
return $this->_table;
}