[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
This file deals with RAII style scoped callbacks. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 73 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ScopedCallback:: (4 methods):
__construct()
consume()
cancel()
__destruct()
Class: ScopedCallback - X-Ref
Class for asserting that a callback happens when an dummy object leaves scope__construct( $callback ) X-Ref |
param: callable $callback |
consume( ScopedCallback &$sc = null ) X-Ref |
Trigger a scoped callback and destroy it. This is the same is just setting it to null. param: ScopedCallback $sc |
cancel( ScopedCallback &$sc = null ) X-Ref |
Destroy a scoped callback without triggering it param: ScopedCallback $sc |
__destruct() X-Ref |
Trigger the callback when this leaves scope |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |