Prado\Data\DataGateway\TTableGateway::__construct PHP Метод

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

Creates a new generic table gateway for a given table or view name and a database connection.
public __construct ( $table, $connection )
    public function __construct($table, $connection)
    {
        $this->_connection = $connection;
        if (is_string($table)) {
            $this->setTableName($table);
        } else {
            if ($table instanceof TDbTableInfo) {
                $this->setTableInfo($table);
            } else {
                throw new TDbException('dbtablegateway_invalid_table_info');
            }
        }
    }