Prado\Web\UI\ActiveControls\TActiveTableRow::getTable PHP Метод

getTable() публичный Метод

Returns the parent {@link TTable} control by looping through all parents until a {@link TTable} is found. Raises a {@link TConfigurationException} if no table control is found.
public getTable ( ) : TTable
Результат Prado\Web\UI\WebControls\TTable the parent table control
    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;
    }