Ignore:
Timestamp:
Nov 20, 2013, 1:45:37 PM (10 years ago)
Author:
mistic100
Message:

aliases trigger_event() in trigger_change() and trigger_action() in trigger_notify()
complete removal for 2.7 or 2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_plugins.inc.php

    r25601 r25602  
    239239/**
    240240 * 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_
    242242 * through all handlers, thus each handler MUST return a value,
    243243 * optional _$args_ are not transmitted.
     244 *
     245 * @since 2.6
     246 * @todo remove trigger_event()
    244247 *
    245248 * @param string $event
     
    248251 * @return mixed $data
    249252 */
     253function 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 */
    250262function trigger_event($event, $data=null)
    251263{
     
    280292
    281293/**
    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()
    284299 *
    285300 * @param string $event
    286301 * @param mixed $args,... optional arguments
     302 */
     303function 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
    287311 */
    288312function trigger_action($event)
Note: See TracChangeset for help on using the changeset viewer.