Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4bb2ee95
Commit
4bb2ee95
authored
Jan 04, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs of Event
parent
8d2ce647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Event.php
framework/yii/base/Event.php
+4
-2
No files found.
framework/yii/base/Event.php
View file @
4bb2ee95
...
...
@@ -25,13 +25,15 @@ namespace yii\base;
class
Event
extends
Object
{
/**
* @var string the event name. This property is set by [[Component::trigger()]].
* @var string the event name. This property is set by [[Component::trigger()]]
and [[trigger()]]
.
* Event handlers may use this property to check what event it is handling.
*/
public
$name
;
/**
* @var object the sender of this event. If not set, this property will be
* set as the object whose "trigger()" method is called.
* This property may also be a `null` when this event is a
* class-level event which is triggered in a static context.
*/
public
$sender
;
/**
...
...
@@ -88,7 +90,7 @@ class Event extends Object
* @param string $name the event name.
* @param callback $handler the event handler to be removed.
* If it is null, all handlers attached to the named event will be removed.
* @return boolean
if
a handler is found and detached.
* @return boolean
whether
a handler is found and detached.
* @see on()
*/
public
static
function
off
(
$class
,
$name
,
$handler
=
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment