API17:JCli::registerEvent
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JCli::registerEvent|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JCli::registerEvent|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function registerEvent ( |
| + | $event | ||
| + | $handler | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 32: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' void | |
| − | void | + | * '''Defined''' on line 179 of libraries/joomla/application/cli.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/application/cli.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JCli::registerEvent source code''' on [[jplatform:application/cli.php#cl-171|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JCli/11.1|JCli]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]] | ||
| + | * [[JCli::registerEvent|Other versions of JCli::registerEvent]] | ||
| + | {{SeeAlso:JCli::registerEvent}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JCli::registerEvent|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JCli::registerEvent|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 53: | Line 52: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JCli]][[Category:JCli::registerEvent]]</noinclude> | <noinclude>[[Category:JCli]][[Category:JCli::registerEvent]]</noinclude> | ||
Revision as of 20:21, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JCli::registerEvent
Description
Registers a handler to a particular event group.
Description:JCli::registerEvent [Edit Descripton]
public function registerEvent ( $event $handler )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $event | string | The event name. | |
| $handler | callback | The handler, a function or an instance of a event object. |
See also
-
JCli::registerEvent source code on BitBucket
-
Class JCli
-
Subpackage Application
- Other versions of JCli::registerEvent
SeeAlso:JCli::registerEvent [Edit See Also]
User contributed notes
<CodeExamplesForm />
