diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:20:54 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:20:54 +0000 |
commit | b95f73d374c43006a82eddd35b630bd10a9fbb5f (patch) | |
tree | d8276897fee1ee45c062d462e956c80d8244cd6a /inc/parser | |
parent | 221cb66533e11a3e20e642d760af06bb19f7e14b (diff) | |
download | rpg-b95f73d374c43006a82eddd35b630bd10a9fbb5f.tar.gz rpg-b95f73d374c43006a82eddd35b630bd10a9fbb5f.tar.bz2 |
Add ordering to event handlers
Allows a sequence integer to be supplied when registering to handle
an event. When processing an event, handlers (hooks) will be
executed in ascending order of their sequence number. If two or
more handlers have the same sequence number their order of
execution is undefined.
A handler wanting to be first, should use -PHP_MAX_INT.
A handler wanting to be last can use PHP_MAX_INT.
There may be conflicts if two or more plugins use these values in
the expectation that they will guarantee being first or last.
Diffstat (limited to 'inc/parser')
0 files changed, 0 insertions, 0 deletions