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

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

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

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

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

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

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

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