protected function _createWikiPagesList( array $options, array $sections )
	{
		$data = '';
		$date = date( 'c' );
		$keyprefix = $this->_keyprefix;
		$wikiprefix = $this->_wikiprefix;

		foreach( $sections as $name => $list )
		{
			$data .= "<page>\n<title>$wikiprefix/$keyprefix/$name</title>\n<ns>0</ns><revision><timestamp>$date</timestamp>
<contributor></contributor>\n<comment>Generated by MShopConfigDocTask</comment>
<text xml:space=\"preserve\">__TOC__\n\n\n&lt;div class=\"config\"&gt;";

			if( isset( $list['global'] ) )
			{
				foreach( (array) $list['global'] as $key )
				{
					$desc = $options[$key]['short'];
					$data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n";
				}

				unset( $list['global'] );
			}

			foreach( $list as $subname => $keys )
			{
				if( is_array( $keys ) )
				{
					$data .= "\n== $subname ==\n";

					foreach( $keys as $key )
					{
						$desc = $options[$key]['short'];
						$data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n";
					}
				}
				else
				{
					$desc = $options[$keys]['short'];
					$data .= "\n; [[$wikiprefix/$keys|$keys]] : $desc\n";
				}
			}

			$data .= "&lt;/div&gt;</text><model>wikitext</model><format>text/x-wiki</format></revision>\n</page>\n";
		}

		return $data;
	}
protected function _createWikiPagesList( array $options, array $sections )
	{
		$data = '';
		$date = date( 'c' );
		$keyprefix = $this->_keyprefix;
		$wikiprefix = $this->_wikiprefix;

		foreach( $sections as $name => $list )
		{
			$data .= "<page>\n<title>$wikiprefix/$keyprefix/$name</title>\n<ns>0</ns><revision><timestamp>$date</timestamp>
<contributor></contributor>\n<comment>Generated by MShopConfigDocTask</comment>
<text xml:space=\"preserve\">__TOC__\n\n\n&lt;div class=\"config\"&gt;";

			if( isset( $list['global'] ) )
			{
				foreach( (array) $list['global'] as $key )
				{
					$desc = $options[$key]['short'];
					$data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n";
				}

				unset( $list['global'] );
			}

			foreach( $list as $subname => $keys )
			{
				if( is_array( $keys ) )
				{
					$data .= "\n== $subname ==\n";

					foreach( $keys as $key )
					{
						$desc = $options[$key]['short'];
						$data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n";
					}
				}
				else
				{
					$desc = $options[$keys]['short'];
					$data .= "\n; [[$wikiprefix/$keys|$keys]] : $desc\n";
				}
			}

			$data .= "&lt;/div&gt;</text><model>wikitext</model><format>text/x-wiki</format></revision>\n</page>\n";
		}

		return $data;
	}
protected function _createWikiPagesList ( array $ options , array $ sections ) { $ data = '' ; $ date = date ( 'c' ) ; $ keyprefix = $ this -> _keyprefix ; $ wikiprefix = $ this -> _wikiprefix ; foreach ( $ sections as $ name => $ list ) { $ data .= "<page>\n<title>$wikiprefix/$keyprefix/$name</title>\n<ns>0</ns><revision><timestamp>$date</timestamp>
<contributor></contributor>\n<comment>Generated by MShopConfigDocTask</comment>
<text xml:space=\"preserve\">__TOC__\n\n\n&lt;div class=\"config\"&gt;" ; if ( isset ( $ list [ 'global' ] ) ) { foreach ( ( array ) $ list [ 'global' ] as $ key ) { $ desc = $ options [ $ key ] [ 'short' ] ; $ data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n" ; } unset ( $ list [ 'global' ] ) ; } foreach ( $ list as $ subname => $ keys ) { if ( is_array ( $ keys ) ) { $ data .= "\n== $subname ==\n" ; foreach ( $ keys as $ key ) { $ desc = $ options [ $ key ] [ 'short' ] ; $ data .= "\n; [[$wikiprefix/$key|$key]] : $desc\n" ; } } else { $ desc = $ options [ $ keys ] [ 'short' ] ; $ data .= "\n; [[$wikiprefix/$keys|$keys]] : $desc\n" ; } } $ data .= "&lt;/div&gt;</text><model>wikitext</model><format>text/x-wiki</format></revision>\n</page>\n" ; } return $ data ; }
Creates the list page for all wiki pages.

@param array $options Associative list of the keys and an array of
"short", "desc", "param", "since" and "see" entries
@param array $sections Two dimensional associative list of section names and sub-names
@return string Mediawiki page as XML for import
Creates the list page for all wiki pages .