<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FPHP%2FPlugins%2FWriting_PHP%2FHook_Examples</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hook Examples - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FPHP%2FPlugins%2FWriting_PHP%2FHook_Examples"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&amp;action=history"/>
		<updated>2026-06-07T11:13:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&amp;diff=3380&amp;oldid=prev</id>
		<title>Wiktor: moved CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hooks Examples to CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hook Examples</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&amp;diff=3380&amp;oldid=prev"/>
				<updated>2010-05-26T08:14:16Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hooks_Examples&quot; class=&quot;mw-redirect&quot; title=&quot;CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hooks Examples&quot;&gt;CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hooks Examples&lt;/a&gt; to &lt;a href=&quot;/CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&quot; title=&quot;CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hook Examples&quot;&gt;CKFinder 2.x/Developers Guide/PHP/Plugins/Writing PHP/Hook Examples&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:14, 26 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&amp;diff=3379&amp;oldid=prev</id>
		<title>Wiktor: Created page with 'An event handler might be a function, a method or even just an object.  &lt;source lang=&quot;php&quot;&gt; // [Function, no data] 	$config['Hooks']['EventName'][] = 'someFunction';	 // result: …'</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Plugins/Writing_PHP/Hook_Examples&amp;diff=3379&amp;oldid=prev"/>
				<updated>2010-05-26T08:13:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;An event handler might be a function, a method or even just an object.  &amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt; // [Function, no data] 	$config[&amp;#039;Hooks&amp;#039;][&amp;#039;EventName&amp;#039;][] = &amp;#039;someFunction&amp;#039;;	 // result: …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;An event handler might be a function, a method or even just an object.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// [Function, no data]&lt;br /&gt;
	$config['Hooks']['EventName'][] = 'someFunction';	&lt;br /&gt;
// result: &lt;br /&gt;
	someFunction($param1, $param2);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// [Function with data]&lt;br /&gt;
	$config['Hooks']['EventName'][] = array('someFunction', $someData);	&lt;br /&gt;
// result:&lt;br /&gt;
	someFunction($someData, $param1, $param2);&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
// [Object only]	&lt;br /&gt;
	$config['Hooks']['EventName'][] = $object;&lt;br /&gt;
// result:&lt;br /&gt;
	$object-&amp;gt;onEventName($param1, $param2);&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
// [Object with method]&lt;br /&gt;
	$config['Hooks']['EventName'][] = array($object, 'someMethod');	&lt;br /&gt;
// result:&lt;br /&gt;
	$object-&amp;gt;someMethod($param1, $param2);&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
// [Object with method and data]&lt;br /&gt;
	$config['Hooks']['EventName'][] = array($object, 'someMethod', $someData);&lt;br /&gt;
// result:&lt;br /&gt;
	$object-&amp;gt;someMethod($someData, $param1, $param2);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	</feed>