kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php
protected function _deleteByWildcardInner( $wildcard, $fname )
    {
        // Convert wildcard to regexp.
        $regex = '^' . mysqli_real_escape_string( $this->db, $wildcard ) . '$';

        $regex = str_replace( array( '.'  ),
                              array( '\.' ),
                              $regex );

        $regex = str_replace( array( '?', '*',  '{', '}', ',' ),
                              array( '.', '.*', '(', ')', '|' ),
                              $regex );

        $sql = "UPDATE " . $this->dbTable( $wildcard ) . " SET mtime=-ABS(mtime), expired=1\nWHERE name REGEXP '$regex'";
        if ( !$res = $this->_query( $sql, $fname ) )
        {
            return $this->_fail( "Failed to delete files by wildcard: '$wildcard'" );
        }
        return true;
    }
protected function _deleteByWildcardInner( $wildcard, $fname )
    {
        // Convert wildcard to regexp.
        $regex = '^' . mysqli_real_escape_string( $this->db, $wildcard ) . '$';

        $regex = str_replace( array( '.'  ),
                              array( '\.' ),
                              $regex );

        $regex = str_replace( array( '?', '*',  '{', '}', ',' ),
                              array( '.', '.*', '(', ')', '|' ),
                              $regex );

        $sql = "UPDATE " . $this->dbTable( $wildcard ) . " SET mtime=-ABS(mtime), expired=1\nWHERE name REGEXP '$regex'";
        if ( !$res = $this->_query( $sql, $fname ) )
        {
            return $this->_fail( "Failed to delete files by wildcard: '$wildcard'" );
        }
        return true;
    }
protected function _deleteByWildcardInner ( $ wildcard , $ fname ) { // Convert wildcard to regexp. $ regex = '^' . mysqli_real_escape_string ( $ this -> db , $ wildcard ) . '$' ; $ regex = str_replace ( array ( '.' ) , array ( '\.' ) , $ regex ) ; $ regex = str_replace ( array ( '?' , '*' , '{' , '}' , ',' ) , array ( '.' , '.*' , '(' , ')' , '|' ) , $ regex ) ; $ sql = "UPDATE " . $ this -> dbTable ( $ wildcard ) . " SET mtime=-ABS(mtime), expired=1\nWHERE name REGEXP '$regex'" ; if ( ! $ res = $ this -> _query ( $ sql , $ fname ) ) { return $ this -> _fail ( "Failed to delete files by wildcard: '$wildcard'" ) ; } return true ; }
Callback used by _deleteByWildcard to perform the deletion

@param mixed $wildcard
@param mixed $fname
@return bool
@deprecated Has severe performance issues
Callback used by _deleteByWildcard to perform the deletion