<?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%3ACalculated_question_function_find_all_question_dataset_names</id>
	<title>Development:Calculated question function find all question dataset names - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ACalculated_question_function_find_all_question_dataset_names"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Calculated_question_function_find_all_question_dataset_names&amp;action=history"/>
	<updated>2026-05-07T15:03:09Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Calculated_question_function_find_all_question_dataset_names&amp;diff=10888&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Calculated_question_function_find_all_question_dataset_names&amp;diff=10888&amp;oldid=prev"/>
		<updated>2024-10-21T08:51:03Z</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:51, 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:Calculated_question_function_find_all_question_dataset_names&amp;diff=10887&amp;oldid=prev</id>
		<title>1&gt;Ppichet в 02:33, 18 октября 2006</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Calculated_question_function_find_all_question_dataset_names&amp;diff=10887&amp;oldid=prev"/>
		<updated>2006-10-18T02:33:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Description of the function find_all_question_dataset_names()&lt;br /&gt;
This is an adaptation of the actual code in datasetdependent/datasetdefinition.php &lt;br /&gt;
  function find_all_question_dataset_names(&amp;amp;$question, &amp;amp;$mandatorydatasets, &amp;amp;$possibledatasets) {&lt;br /&gt;
    // Returns the possible dataset names found in the text and answers&lt;br /&gt;
    $possibledatasets = $this-&amp;gt;find_dataset_names($question-&amp;gt;questiontext);&lt;br /&gt;
    foreach ($question-&amp;gt;options-&amp;gt;answers as $answer) {&lt;br /&gt;
               $mandatorydatasets += $this&lt;br /&gt;
                -&amp;gt;find_dataset_names($answer-&amp;gt;answer);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
   // construct the complete list with a single entry for each dataset name&lt;br /&gt;
     $allpossibledatasets=array();&lt;br /&gt;
     foreach ($mandatorydatasets as $datasetname) {&lt;br /&gt;
         if (!isset($allpossibledatasets[$datasetname])) {&lt;br /&gt;
            $allpossibledatasets[$datasetname]=$datasetname;&lt;br /&gt;
         }&lt;br /&gt;
     }    &lt;br /&gt;
         foreach ($possibledatasets as $datasetname) {&lt;br /&gt;
            if (!isset($allpossibledatasets[$datasetname])) {&lt;br /&gt;
                $allpossibledatasets[$datasetname]=$datasetname;&lt;br /&gt;
            }&lt;br /&gt;
        } &lt;br /&gt;
        return fullclone($allpossibledatasets);   //fullclone() necessary; array of objects&lt;br /&gt;
    }&lt;/div&gt;</summary>
		<author><name>1&gt;Ppichet</name></author>
	</entry>
</feed>