<?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%3AMessaging</id>
	<title>Development:Messaging - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AMessaging"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Messaging&amp;action=history"/>
	<updated>2026-05-07T18:42:48Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Messaging&amp;diff=11356&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Messaging&amp;diff=11356&amp;oldid=prev"/>
		<updated>2024-10-21T08:51:27Z</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:Messaging&amp;diff=11355&amp;oldid=prev</id>
		<title>1&gt;Lfrodrigues: /* Sending a Message */</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Messaging&amp;diff=11355&amp;oldid=prev"/>
		<updated>2008-09-25T17:42:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sending a Message&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Messageing API is a new core system in Moodle to allow communication of messages to users. It&amp;#039;s based on the events system, so a module will trigger an event with the attached message data and the message output processor will try to deliver the message to the correct place.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Setting up a provider===&lt;br /&gt;
* db/messages.php (list the types of providers)&lt;br /&gt;
* /lang/XX/messages/providercomponent_providername.html (documentation)&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
===Setting up a processor===&lt;br /&gt;
&lt;br /&gt;
===Sending a Message===&lt;br /&gt;
&lt;br /&gt;
Whenever you need to send a message, it should “tell” the system about it.   So, using the message as an example, we first define an object as follows:&lt;br /&gt;
&lt;br /&gt;
 $eventdata = new object();&lt;br /&gt;
 $eventdata-&amp;gt;component        = &amp;quot;message&amp;quot;;&lt;br /&gt;
 $eventdata-&amp;gt;name             = &amp;quot;instantmessage&amp;quot;;&lt;br /&gt;
 $eventdata-&amp;gt;userfrom         = $userfrom;&lt;br /&gt;
 $eventdata-&amp;gt;userto           = $userto;&lt;br /&gt;
 $eventdata-&amp;gt;subject          = &amp;quot;IM&amp;quot;;&lt;br /&gt;
 $eventdata-&amp;gt;fullmessage      = $message;&lt;br /&gt;
 $eventdata-&amp;gt;fullmessageformat = FORMAT_PLAIN;&lt;br /&gt;
 $eventdata-&amp;gt;fullmessagehtml  = &amp;quot;&amp;quot;;&lt;br /&gt;
 $eventdata-&amp;gt;smallmessage     = &amp;quot;&amp;quot;; &lt;br /&gt;
&lt;br /&gt;
Then we post the object as an event and forget about it:&lt;br /&gt;
&lt;br /&gt;
 events_trigger(&amp;#039;message_send&amp;#039;, $eventdata);&lt;/div&gt;</summary>
		<author><name>1&gt;Lfrodrigues</name></author>
	</entry>
</feed>