Redaxscript\Installer::_rawExecute PHP Метод

_rawExecute() защищенный Метод

execute from sql
С версии: 2.4.0
protected _rawExecute ( string $action = null, string $type = 'mysql' )
$action string action to process
$type string type of the database
    protected function _rawExecute($action = null, $type = 'mysql')
    {
        $sqlDirectory = new Directory();
        $sqlDirectory->init($this->_directory . '/' . $type . '/' . $action);
        $sqlArray = $sqlDirectory->getArray();
        /* process sql */
        foreach ($sqlArray as $file) {
            $query = file_get_contents($this->_directory . '/' . $type . '/' . $action . '/' . $file);
            if ($query) {
                if ($this->_config->get('dbPrefix')) {
                    $query = str_replace($this->_prefixPlaceholder, $this->_config->get('dbPrefix'), $query);
                }
                Db::rawExecute($query);
            }
        }
    }