Changeset 25602 for trunk/include/functions_plugins.inc.php
- Timestamp:
- Nov 20, 2013, 1:45:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_plugins.inc.php
r25601 r25602 239 239 /** 240 240 * Triggers a modifier event and calls all registered event handlers. 241 * trigger_ modify() is used as a modifier: it allows to transmit _$data_241 * trigger_change() is used as a modifier: it allows to transmit _$data_ 242 242 * through all handlers, thus each handler MUST return a value, 243 243 * optional _$args_ are not transmitted. 244 * 245 * @since 2.6 246 * @todo remove trigger_event() 244 247 * 245 248 * @param string $event … … 248 251 * @return mixed $data 249 252 */ 253 function trigger_change($event, $data=null) 254 { 255 return call_user_func_array('trigger_event', func_get_args()); 256 } 257 258 /** 259 * @deprecated 2.6 260 * @see trigger_change 261 */ 250 262 function trigger_event($event, $data=null) 251 263 { … … 280 292 281 293 /** 282 * Triggers an notifier event and calls all registered event handlers. 283 * trigger_action() is only used as a notifier, no modification of data is possible 294 * Triggers a notifier event and calls all registered event handlers. 295 * trigger_notify() is only used as a notifier, no modification of data is possible 296 * 297 * @since 2.6 298 * @todo remove trigger_action() 284 299 * 285 300 * @param string $event 286 301 * @param mixed $args,... optional arguments 302 */ 303 function trigger_notify($event) 304 { 305 return call_user_func_array('trigger_action', func_get_args()); 306 } 307 308 /** 309 * @deprecated 2.6 310 * @see trigger_notify 287 311 */ 288 312 function trigger_action($event)
Note: See TracChangeset
for help on using the changeset viewer.