src/Squid/MySql/Impl/Command/CmdInsert.php
public function values($values) 
	{
		if (isset($values[0]))
			return $this->appendByPosition($values);
		
		$this->fixDefaultValues($values);
		
		if (!$this->fields) 
		{
			$this->placeholder = false;
			$this->fields = array_keys($values);
			return $this->appendByPosition(array_values($values));
		}
		
		return $this->appendByField($values);
	}
public function values($values) 
	{
		if (isset($values[0]))
			return $this->appendByPosition($values);
		
		$this->fixDefaultValues($values);
		
		if (!$this->fields) 
		{
			$this->placeholder = false;
			$this->fields = array_keys($values);
			return $this->appendByPosition(array_values($values));
		}
		
		return $this->appendByField($values);
	}
public function values ( $ values ) { if ( isset ( $ values [ 0 ] ) ) return $ this -> appendByPosition ( $ values ) ; $ this -> fixDefaultValues ( $ values ) ; if ( ! $ this -> fields ) { $ this -> placeholder = false ; $ this -> fields = array_keys ( $ values ) ; return $ this -> appendByPosition ( array_values ( $ values ) ) ; } return $ this -> appendByField ( $ values ) ; }
Append a set of values to insert.
@param array $values If numeric array, values must match fields that were set earlier.
If assoc array, key must be the field name. If defaultValues was called, any missing field value,
(if fields where set earlier) will be checked to have a default value.
@return static
Append a set of values to insert .