public function select($t, $c = array()){
		if(!is_array($c)){
			$c = array($c);
		}
		if(is_array($t)){
			$c = $t;
		}elseif(is_string($t)){
			$this->table($t);
		}
		$columns = [];
		foreach($c as $i => $s){
			$column = [];
			if(!is_array($s)){
				$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($s);
			}else{
				$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($i);
				$column['cases'] = \Dorsataio\Squibble\Resource\Extract::extractCase($s);
				
			}
			array_push($columns, $column);
		}
		$this->_sql = $this->getSelectStatement($columns);
		return $this;
	}
public function select($t, $c = array()){
		if(!is_array($c)){
			$c = array($c);
		}
		if(is_array($t)){
			$c = $t;
		}elseif(is_string($t)){
			$this->table($t);
		}
		$columns = [];
		foreach($c as $i => $s){
			$column = [];
			if(!is_array($s)){
				$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($s);
			}else{
				$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($i);
				$column['cases'] = \Dorsataio\Squibble\Resource\Extract::extractCase($s);
				
			}
			array_push($columns, $column);
		}
		$this->_sql = $this->getSelectStatement($columns);
		return $this;
	}
public function select ( $ t , $ c = array ( ) ) { if ( ! is_array ( $ c ) ) { $ c = array ( $ c ) ; } if ( is_array ( $ t ) ) { $ c = $ t ; } elseif ( is_string ( $ t ) ) { $ this -> table ( $ t ) ; } $ columns = [ ] ; foreach ( $ c as $ i => $ s ) { $ column = [ ] ; if ( ! is_array ( $ s ) ) { $ column = \ Dorsataio \ Squibble \ Resource \ Extract :: fromColumn ( $ s ) ; } else { $ column = \ Dorsataio \ Squibble \ Resource \ Extract :: fromColumn ( $ i ) ; $ column [ 'cases' ] = \ Dorsataio \ Squibble \ Resource \ Extract :: extractCase ( $ s ) ; } array_push ( $ columns , $ column ) ; } $ this -> _sql = $ this -> getSelectStatement ( $ columns ) ; return $ this ; }
Start a new SELECT query.

@param array $c Array containing columns that the SELECT query will return.

@return object returns the current squibble object.
Start a new SELECT query .