protected function beforeParse()
    {
        // has alias
        if( isset($this->query['table'])) {
            $tables_str = implode(',', $this->query['table']);
            if (preg_match('/((?:as|\,|join)\w+)/i', $tables_str) > 0) {
                $this->query->hasAlias(true);
            }
        }
    }
protected function beforeParse()
    {
        // has alias
        if( isset($this->query['table'])) {
            $tables_str = implode(',', $this->query['table']);
            if (preg_match('/((?:as|\,|join)\w+)/i', $tables_str) > 0) {
                $this->query->hasAlias(true);
            }
        }
    }
protected function beforeParse ( ) { // has alias if ( isset ( $ this -> query [ 'table' ] ) ) { $ tables_str = implode ( ',' , $ this -> query [ 'table' ] ) ; if ( preg_match ( '/((?:as|\,|join)\w+)/i' , $ tables_str ) > 0 ) { $ this -> query -> hasAlias ( true ) ; } } }
handle somethind before parse, common handle for every query
handle somethind before parse common handle for every query