public function parse()
    {
        if ($this->query !== null) {
            return $this->query;
        }
        $query = preg_replace_callback('~{(.*?)}~', array($this, 'tableClb'), $this->pattern);
        $pattern = '~\?([a-z\?-]+)?(:([a-z0-9_-]*))?;?~i';
        $callback = array($this, 'placeholderClb');
        $query = preg_replace_callback($pattern, $callback, $query);
        if ((!$this->named) && (count($this->data) > $this->counter)) {
            if (($this->counter > 0) || (isset($this->data[0]))) {
                throw new DataMuch(count($this->data), $this->counter);
            }
        }
        $this->query = $query;
        return $this->query;
    }
public function parse()
    {
        if ($this->query !== null) {
            return $this->query;
        }
        $query = preg_replace_callback('~{(.*?)}~', array($this, 'tableClb'), $this->pattern);
        $pattern = '~\?([a-z\?-]+)?(:([a-z0-9_-]*))?;?~i';
        $callback = array($this, 'placeholderClb');
        $query = preg_replace_callback($pattern, $callback, $query);
        if ((!$this->named) && (count($this->data) > $this->counter)) {
            if (($this->counter > 0) || (isset($this->data[0]))) {
                throw new DataMuch(count($this->data), $this->counter);
            }
        }
        $this->query = $query;
        return $this->query;
    }
public function parse ( ) { if ( $ this -> query !== null ) { return $ this -> query ; } $ query = preg_replace_callback ( '~{(.*?)}~' , array ( $ this , 'tableClb' ) , $ this -> pattern ) ; $ pattern = '~\?([a-z\?-]+)?(:([a-z0-9_-]*))?;?~i' ; $ callback = array ( $ this , 'placeholderClb' ) ; $ query = preg_replace_callback ( $ pattern , $ callback , $ query ) ; if ( ( ! $ this -> named ) && ( count ( $ this -> data ) > $ this -> counter ) ) { if ( ( $ this -> counter > 0 ) || ( isset ( $ this -> data [ 0 ] ) ) ) { throw new DataMuch ( count ( $ this -> data ) , $ this -> counter ) ; } } $ this -> query = $ query ; return $ this -> query ; }
The query templating

@return string
the result query
@throws \go\DB\Exceptions\Templater
The query templating