iaPatchApplier::_processQuery PHP Method

_processQuery() protected method

protected _processQuery ( $query, $log = true )
    protected function _processQuery($query, $log = true)
    {
        $options = 'ENGINE=MyISAM DEFAULT CHARSET=utf8';
        $query = str_replace(array('{prefix}', '{db.options}'), array($this->_dbConnectionParams['prefix'], $options), $query);
        $result = mysqli_query($this->_dbConnectionParams['link'], $query);
        if ($log) {
            $result ? $this->_logInfo('Query executed: :query (affected: :num)', self::LOG_SUCCESS, array('query' => $query, 'num' => mysqli_affected_rows($this->_dbConnectionParams['link']))) : $this->_logInfo('Query failed: :query (:error)', self::LOG_ERROR, array('query' => $query, 'error' => mysqli_error($this->_dbConnectionParams['link'])));
        }
    }