|
MediaWiki
master
|
Subclass ScopedCallback to avoid call_user_func_array(), which is slow. More...


Public Member Functions | |
| __construct (SectionProfiler $profiler, $section) | |
| __destruct () | |
Public Member Functions inherited from ScopedCallback | |
| __construct ($callback, array $params=[]) | |
| __destruct () | |
| Trigger the callback when this leaves scope. More... | |
Protected Attributes | |
| SectionProfiler | $profiler |
| string | $section |
Protected Attributes inherited from ScopedCallback | |
| callable | $callback |
| array | $params |
Additional Inherited Members | |
Static Public Member Functions inherited from ScopedCallback | |
| static | cancel (ScopedCallback &$sc=null) |
| Destroy a scoped callback without triggering it. More... | |
| static | consume (ScopedCallback &$sc=null) |
| Trigger a scoped callback and destroy it. More... | |
Subclass ScopedCallback to avoid call_user_func_array(), which is slow.
This class should not be used outside of SectionProfiler
Definition at line 505 of file SectionProfiler.php.
| SectionProfileCallback::__construct | ( | SectionProfiler | $profiler, |
| $section | |||
| ) |
| SectionProfiler | $profiler | |
| string | $section |
Definition at line 515 of file SectionProfiler.php.
| SectionProfileCallback::__destruct | ( | ) |
Definition at line 521 of file SectionProfiler.php.
|
protected |
Definition at line 507 of file SectionProfiler.php.
Referenced by __construct().
|
protected |
Definition at line 509 of file SectionProfiler.php.
Referenced by __construct().