src/SweetORM/Database/Query.php
public function into($table = "")
    {
        if (empty($table)) {
            $table = $this->structure->tableName;
        }

        $this->table = $table;
        $this->queryType = self::QUERY_INSERT;

        // Determinate the column order
        $this->columnOrder = array();
        foreach ($this->structure->columns as $column) {
            $this->columnOrder[] = $column;
        }

        return $this;
    }
public function into($table = "")
    {
        if (empty($table)) {
            $table = $this->structure->tableName;
        }

        $this->table = $table;
        $this->queryType = self::QUERY_INSERT;

        // Determinate the column order
        $this->columnOrder = array();
        foreach ($this->structure->columns as $column) {
            $this->columnOrder[] = $column;
        }

        return $this;
    }
public function into ( $ table = "" ) { if ( empty ( $ table ) ) { $ table = $ this -> structure -> tableName ; } $ this -> table = $ table ; $ this -> queryType = self :: QUERY_INSERT ; // Determinate the column order $ this -> columnOrder = array ( ) ; foreach ( $ this -> structure -> columns as $ column ) { $ this -> columnOrder [ ] = $ column ; } return $ this ; }
Insert into table

@param string $table
@return Query $this
Insert into table