public function getStructuralPatches($patchLevel)
    {
        $patches = $this->db->fetchAll(
                "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order",
                $patchLevel
                );

        foreach ($patches as $patchId => $patch) {
            if (\MUtil_String::startsWith(trim($patch['gpa_sql']), 'INSERT', true) ||
                    \MUtil_String::startsWith(trim($patch['gpa_sql']), 'UPDATE', true) ||
                    \MUtil_String::startsWith(trim($patch['gpa_sql']), 'DELETE', true)) {
                unset($patches[$patchId]);
            }
        }

        return $patches;
    }
public function getStructuralPatches($patchLevel)
    {
        $patches = $this->db->fetchAll(
                "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order",
                $patchLevel
                );

        foreach ($patches as $patchId => $patch) {
            if (\MUtil_String::startsWith(trim($patch['gpa_sql']), 'INSERT', true) ||
                    \MUtil_String::startsWith(trim($patch['gpa_sql']), 'UPDATE', true) ||
                    \MUtil_String::startsWith(trim($patch['gpa_sql']), 'DELETE', true)) {
                unset($patches[$patchId]);
            }
        }

        return $patches;
    }
public function getStructuralPatches ( $ patchLevel ) { $ patches = $ this -> db -> fetchAll ( "SELECT * FROM gems__patches WHERE gpa_level = ? ORDER BY gpa_location, gpa_name, gpa_order" , $ patchLevel ) ; foreach ( $ patches as $ patchId => $ patch ) { if ( \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'INSERT' , true ) || \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'UPDATE' , true ) || \ MUtil_String :: startsWith ( trim ( $ patch [ 'gpa_sql' ] ) , 'DELETE' , true ) ) { unset ( $ patches [ $ patchId ] ) ; } } return $ patches ; }
Get the structural patches for the given patch level
@param int $patchLevel
@return array
Get the structural patches for the given patch level