protected function _getIndexDefinitions( $content )
	{
		$defs = array( );
		$matches = array( );

		if ( preg_match_all('/CREATE [a-zA-Z]* ?INDEX \"?([a-zA-Z0-9_]+)\"? ON \"?([a-zA-Z0-9_]+)\"? .+(\n\n|$)/sU', $content, $matches, PREG_SET_ORDER) === false ) {
			throw new MW_Setup_Exception('Unable to get index definitions');
		}

		foreach ( $matches as $match ) {
			$name = $match[2] . '.' . $match[1];
			$defs[$name] = $match[0];
		}

		return $defs;
	}
protected function _getIndexDefinitions( $content )
	{
		$defs = array( );
		$matches = array( );

		if ( preg_match_all('/CREATE [a-zA-Z]* ?INDEX \"?([a-zA-Z0-9_]+)\"? ON \"?([a-zA-Z0-9_]+)\"? .+(\n\n|$)/sU', $content, $matches, PREG_SET_ORDER) === false ) {
			throw new MW_Setup_Exception('Unable to get index definitions');
		}

		foreach ( $matches as $match ) {
			$name = $match[2] . '.' . $match[1];
			$defs[$name] = $match[0];
		}

		return $defs;
	}
protected function _getIndexDefinitions ( $ content ) { $ defs = array ( ) ; $ matches = array ( ) ; if ( preg_match_all ( '/CREATE [a-zA-Z]* ?INDEX \"?([a-zA-Z0-9_]+)\"? ON \"?([a-zA-Z0-9_]+)\"? .+(\n\n|$)/sU' , $ content , $ matches , PREG_SET_ORDER ) === false ) { throw new MW_Setup_Exception ( 'Unable to get index definitions' ) ; } foreach ( $ matches as $ match ) { $ name = $ match [ 2 ] . '.' . $ match [ 1 ] ; $ defs [ $ name ] = $ match [ 0 ] ; } return $ defs ; }
Extracts the index definitions from the given content.

@param string $content Content of the file to parse
@return array Associative list of index names with index create statements ordered like in the file
Extracts the index definitions from the given content .