public function SQLTemplate($mode)
    {
        $this->mode = $mode;
        $this->template = $this->sql_templates[$mode];

        return $this;
    }
public function SQLTemplate($mode)
    {
        $this->mode = $mode;
        $this->template = $this->sql_templates[$mode];

        return $this;
    }
public function SQLTemplate ( $ mode ) { $ this -> mode = $ mode ; $ this -> template = $ this -> sql_templates [ $ mode ] ; return $ this ; }
Switch template for this query. Determines what would be done
on execute.

By default it is in SELECT mode

@param string $mode A key for $this->sql_templates

@return $this
Switch template for this query . Determines what would be done on execute .