mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Added links to PHP.net to apidoc
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
namespace yii\base;
|
||||
|
||||
/**
|
||||
* ArrayAccessTrait provides the implementation for `IteratorAggregate`, `ArrayAccess` and `Countable`.
|
||||
* ArrayAccessTrait provides the implementation for [[\IteratorAggregate]], [[\ArrayAccess]] and [[\Countable]].
|
||||
*
|
||||
* Note that ArrayAccessTrait requires the class using it contain a property named `data` which should be an array.
|
||||
* The data will be exposed by ArrayAccessTrait to support accessing the class object like an array.
|
||||
|
||||
@ -460,7 +460,7 @@ class Component extends Object
|
||||
* where `$event` is an [[Event]] object which includes parameters associated with the event.
|
||||
*
|
||||
* @param string $name the event name
|
||||
* @param callback $handler the event handler
|
||||
* @param callable $handler the event handler
|
||||
* @param mixed $data the data to be passed to the event handler when the event is triggered.
|
||||
* When the event handler is invoked, this data can be accessed via [[Event::data]].
|
||||
* @see off()
|
||||
@ -475,7 +475,7 @@ class Component extends Object
|
||||
* Detaches an existing event handler from this component.
|
||||
* This method is the opposite of [[on()]].
|
||||
* @param string $name event name
|
||||
* @param callback $handler the event handler to be removed.
|
||||
* @param callable $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
|
||||
* @see on()
|
||||
|
||||
@ -71,7 +71,7 @@ class Event extends Object
|
||||
*
|
||||
* @param string $class the fully qualified class name to which the event handler needs to attach.
|
||||
* @param string $name the event name.
|
||||
* @param callback $handler the event handler.
|
||||
* @param callable $handler the event handler.
|
||||
* @param mixed $data the data to be passed to the event handler when the event is triggered.
|
||||
* When the event handler is invoked, this data can be accessed via [[Event::data]].
|
||||
* @see off()
|
||||
@ -88,7 +88,7 @@ class Event extends Object
|
||||
*
|
||||
* @param string $class the fully qualified class name from which the event handler needs to be detached.
|
||||
* @param string $name the event name.
|
||||
* @param callback $handler the event handler to be removed.
|
||||
* @param callable $handler the event handler to be removed.
|
||||
* If it is null, all handlers attached to the named event will be removed.
|
||||
* @return boolean whether a handler is found and detached.
|
||||
* @see on()
|
||||
|
||||
Reference in New Issue
Block a user