Set the table object, to re-establish a live connection
to the database for a Rowset that has been de-serialized.

@param Zend_Db_Table_Abstract $table
@return boolean
@throws Zend_Db_Table_Row_Exception
177038
public function setTable(Zend_Db_Table_Abstract $table)
    {
        $this->_table = $table;
        $this->_connected = false;
        // @todo This works only if we have iterated through
        // the result set once to instantiate the rows.
        foreach ($this as $row) {
            $connected = $row->setTable($table);
            if ($connected == true) {
                $this->_connected = true;
            }
        }
        return $this->_connected;
    }
205835
public function update( $table )
    {
        $table = $this->getIdentifier( $table );
        $table = $this->getPrefixedTableNames($table);
        $this->table = $table;
        return $this;
    }
1012445
public function setCurrentTable(Table $table)
    {
        $this->fieldsCacheFile = $this->fieldsCacheDir . DIRECTORY_SEPARATOR . '.table.' . $table->getFullTableName() . '.cache';

        if (file_exists($this->fieldsCacheFile)) {
            try {
                $this->fieldsCache = include $this->fieldsCacheFile;
                $this->fieldsCache = unserialize($this->fieldsCache);
            } catch (\Exception $e) {
                $this->fieldsCache = [];
            }
        }else if(!is_null($this->table) && $this->table->getTableName() !== $table->getTableName()) {
            $this->fieldsCache = [];
        }

        $this->table = $table;

        return $this;
    }
40318
public function setTable($table)
    {
        $table = trim(filter_var($table, FILTER_SANITIZE_STRING));
        if (empty($table)) {
            throw new InternalServerErrorException('No table name provided.');
        }

        $this->table = $table;
    }
1090862
public function updateTable($table, ...$tables)
    {
        $instance = $this->updateQueryInstance();

        $instance->updateQuery()->table($table, ...$tables);

        return $instance;
    }
1293942
public function setTableName($table)
    {
        if ($this->sql) {
            if ($this->validateToken($table)) {
                $this->table = $table;
                return true;
            } else {
                throw new SimpleCache_Exception("`$table` is not a valid table name");
            }
        }
        return false;
    }
1120828
public function update(string $table) {
		// set the main action
		$this->action('UPDATE');
		// set the destination table
		list($this->Table) = Query\Convert::columnToPlaceholder($this->Quote ,$table);
		// return self to the next method
		return $this;
	}
176209
public function setTable($table)
    {
        if (!is_string($table)) {
            throw new InvalidArgumentException(sprintf(
                'DatabaseSource::setTable() expects a string as table. (%s given). [%s]',
                gettype($table),
                get_class($this->model())
            ));
        }

        /**
         * For security reason, only alphanumeric characters (+ underscores)
         * are valid table names; Although SQL can support more,
         * there's really no reason to.
         */
        if (!preg_match('/[A-Za-z0-9_]/', $table)) {
            throw new InvalidArgumentException(sprintf(
                'Table name "%s" is invalid: must be alphanumeric / underscore.',
                $table
            ));
        }

        $this->table = $table;
        return $this;
    }
181345
public function setTable(string $table): self
    {
        $this->table = $this->agent->escapeIdentifier($table);

        return $this;
    }
1128530
public function setTable($table)
    {
        $this->table = 'post_'.cleanPostTypeSlug($table);
        self::$_tmptable = $this->table;
        return $this;
    }
995039
public function setTable($table = '') : void
    {
        if ('' === $table) {
            $table = 'dummy';
        }

        if (is_string($table)) {
            $table = TableRegistry::get($table);
        }

        Assert::isInstanceOf($table, Table::class);

        $this->table = $table;
    }
238898
public function setFill(TcTable $table) {
        if ($this->disabled) {
            $fill = false;
        } else {
            $fill = $this->rowCurrentStripe = !$this->rowCurrentStripe;
        }
        foreach ($table->getRowDefinition() as $column => $row) {
            $table->setRowDefinition($column, 'fill', $row['fill'] ?: $fill);
        }
        $this->moveY($table);
    }
1070254
public function setTable(Table $table = null)
    {
        $this->table = $table;

        if ($table && !in_array($this, $table->getRows())) {
            $table->addRow($this);
        }

        return $this;
    }
258564
public function setRow(TableRow $row = null)
    {
        $this->row = $row;

        if (null !== $row && !in_array($this, $row->getCells())) {
            $row->addCell($this);
        }

        return $this;
    }
176651
public function setTable($table)
    {
        $this->table = $table;

        //for each row
        foreach ($this->data as $row) {
            if (!is_object($row) || !method_exists($row, __FUNCTION__)) {
                continue;
            }

            //let the row handle this
            $row->setTable($table);
        }

        return $this;
    }
123655
public function putTable(Table $table)
    {
        $this->tables->set('tables', $table->getName(), $table);
        return $this;
    }
1230273
public function setControllerSource($table = null)
    {
        if (is_null($this->controller)) {
            throw $this->exception('Call setControllerData before');
        }
        $this->controller->setSource($this, $table);
    }