Uwe Steinmann
|
4b761a95a1
|
check if method specified in 'action' is public
|
2024-01-11 10:09:56 +01:00 |
|
Uwe Steinmann
|
014bcc009d
|
first check if parameter 'action' is set, return false if preRun fails
|
2022-08-01 12:43:56 +02:00 |
|
Uwe Steinmann
|
718d922950
|
make some methods public
|
2022-07-29 21:40:32 +02:00 |
|
Uwe Steinmann
|
8ceb8d1e6a
|
get action from request, run hook preRun and check for return value
|
2022-07-29 21:37:59 +02:00 |
|
Uwe Steinmann
|
6421aa94ed
|
pass array passed to __invoke() to hooks preRun and postRun
|
2022-07-26 11:33:12 +02:00 |
|
Uwe Steinmann
|
e0a12590da
|
callHook merges strings and arrays returned from hook
|
2021-07-08 14:14:13 +02:00 |
|
Uwe Steinmann
|
8a7fb230da
|
fix hasHook() which still had some old code
|
2021-07-08 11:05:27 +02:00 |
|
Uwe Steinmann
|
ffdc648292
|
use same way to check for hooks in hasHook() and callHook()
|
2021-04-23 09:56:25 +02:00 |
|
Uwe Steinmann
|
a3be420b88
|
use class_parents() instead of get_class_parent()
|
2020-12-15 20:20:37 +01:00 |
|
Uwe Steinmann
|
dcfefa5801
|
remove cloѕing php tag
|
2020-04-20 10:18:51 +02:00 |
|
Uwe Steinmann
|
167c8a41e3
|
allow 4 arguments passed to hook
|
2019-12-13 14:27:58 +01:00 |
|
Uwe Steinmann
|
a02afe4e64
|
run hook preRun, postRun before and after controller, check for hooks of parent class
|
2019-08-08 09:07:38 +02:00 |
|
Uwe Steinmann
|
c3ca1cb1f9
|
save result of last hook into class variable
|
2019-01-11 15:07:20 +01:00 |
|
Uwe Steinmann
|
883131d61e
|
add method setErrorMsg()
|
2017-06-09 12:27:26 +02:00 |
|
Uwe Steinmann
|
19aa2b5e45
|
add __invoke() method
|
2017-05-12 08:15:26 +02:00 |
|
Uwe Steinmann
|
7c7dfc1411
|
handle hooks with two arguments
|
2017-05-02 18:28:56 +02:00 |
|
Uwe Steinmann
|
e85673cd5c
|
take over return value from hook in callHook() if it is !== null
|
2016-11-22 09:21:12 +01:00 |
|
Uwe Steinmann
|
ffe2192376
|
add errormsg
|
2015-04-15 16:11:45 +02:00 |
|
Uwe Steinmann
|
1f8af132d0
|
add methods getParam() and hasParam()
|
2015-01-08 08:12:11 +01:00 |
|
Uwe Steinmann
|
c1b216bf51
|
running controller can set an error number
getErrorNr() retrieves this number
|
2014-12-08 14:36:26 +01:00 |
|
Uwe Steinmann
|
69aa7db50b
|
callHook() can handle function parameters passed to the hook
|
2014-01-10 07:52:53 +01:00 |
|
Uwe Steinmann
|
5ee03ef693
|
very simple controller pattern
basically used for adding hooks in op/op.* files
|
2013-07-21 11:47:49 +02:00 |
|