<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3Alib%2Fweblib.php</id>
	<title>Development:lib/weblib.php - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3Alib%2Fweblib.php"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:lib/weblib.php&amp;action=history"/>
	<updated>2026-05-06T16:44:05Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:lib/weblib.php&amp;diff=12282&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:lib/weblib.php&amp;diff=12282&amp;oldid=prev"/>
		<updated>2024-10-21T08:59:29Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:59, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:lib/weblib.php&amp;diff=12281&amp;oldid=prev</id>
		<title>1&gt;Nakohdo: /* function build_navigation */</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:lib/weblib.php&amp;diff=12281&amp;oldid=prev"/>
		<updated>2011-03-28T16:55:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;function build_navigation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This library is largely concerned with generating output.&lt;br /&gt;
&lt;br /&gt;
There are lots of different things in this library, and so far, only a very few parts have been documented. However, remember:&lt;br /&gt;
* The code should be well written and easy to understand. Want to know what a particular function does? Well, read the code. Unlike documentation, the code does not get out of date.&lt;br /&gt;
* The [http://phpdocs.moodle.org/moodlecore/_lib---weblib.php.html generated phpDocumentor] output should give brief details about each function.&lt;br /&gt;
&lt;br /&gt;
==Documentation of particular bits==&lt;br /&gt;
&lt;br /&gt;
* [[Development:lib/weblib.php_moodle_url]] - Class for creating and manipulating urls.&lt;br /&gt;
&lt;br /&gt;
===function build_navigation===&lt;br /&gt;
&lt;br /&gt;
You need to call this function before calling print_header(_simple) to create the $navigation parameter. There is an extensive PHPdocumentor comment in the code that explains usage.&lt;br /&gt;
&lt;br /&gt;
Typical examples are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
From mod/quiz/attempt.php:&lt;br /&gt;
        $navigation = build_navigation($strattemptnum, $cm);&lt;br /&gt;
        print_header_simple(format_string($quiz-&amp;gt;name), &amp;quot;&amp;quot;, $navigation, ... )&lt;br /&gt;
&lt;br /&gt;
From mod/forum/post.php:&lt;br /&gt;
        $navlinks = array();&lt;br /&gt;
        $navlinks[] = array(&amp;#039;name&amp;#039; =&amp;gt; format_string($post-&amp;gt;subject, true), &amp;#039;link&amp;#039; =&amp;gt; &amp;quot;discuss.php?d=$discussion-&amp;gt;id&amp;quot;, &amp;#039;type&amp;#039; =&amp;gt; &amp;#039;title&amp;#039;);&lt;br /&gt;
        $navlinks[] = array(&amp;#039;name&amp;#039; =&amp;gt; get_string(&amp;quot;prune&amp;quot;, &amp;quot;forum&amp;quot;), &amp;#039;link&amp;#039; =&amp;gt; &amp;#039;&amp;#039;, &amp;#039;type&amp;#039; =&amp;gt; &amp;#039;title&amp;#039;);&lt;br /&gt;
        $navigation = build_navigation($navlinks, $cm);&lt;br /&gt;
            &lt;br /&gt;
        print_header_simple(format_string($discussion-&amp;gt;name).&amp;quot;: &amp;quot;.format_string($post-&amp;gt;subject), &amp;quot;&amp;quot;, $navigation, ... )&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Roadmap]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>1&gt;Nakohdo</name></author>
	</entry>
</feed>