Changeset 25602


Ignore:
Timestamp:
11/20/13 13:45:37 (6 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

Location:
trunk/include
Files:
3 edited

Legend:

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

    r25548 r25602  
    336336/** 
    337337 * Exits the current script with 403 code. 
    338  * TODO : nice display if $template loaded 
     338 * @todo nice display if $template loaded 
    339339 * 
    340340 * @param string $msg 
     
    355355/** 
    356356 * Exits the current script with 400 code. 
    357  * TODO : nice display if $template loaded 
     357 * @todo nice display if $template loaded 
    358358 * 
    359359 * @param string $msg 
     
    374374/** 
    375375 * Exits the current script with 404 code. 
    376  * TODO : nice display if $template loaded 
     376 * @todo nice display if $template loaded 
    377377 * 
    378378 * @param string $msg 
     
    393393/** 
    394394 * Exits the current script with 500 code. 
    395  * TODO : nice display if $template loaded 
     395 * @todo nice display if $template loaded 
    396396 * 
    397397 * @param string $msg 
  • trunk/include/functions_notification.inc.php

    r25578 r25602  
    2525 * @package functions\notification 
    2626 */ 
    27   
    28 // TODO : use a cache for all data returned by custom_notification_query() 
    2927 
    3028 
     
    5553/** 
    5654 * Execute custom notification query. 
     55 * @todo use a cache for all data returned by custom_notification_query() 
    5756 * 
    5857 * @param string $action 'count', 'info' 
     
    344343 * updated categories. Administrators are also informed about: number of 
    345344 * unvalidated comments, number of new users. 
    346  * TODO : number of unvalidated elements 
     345 * @todo number of unvalidated elements 
    347346 * 
    348347 * @param string $start (mysql datetime format) 
     
    389388 * updated categories. Administrators are also informed about: number of 
    390389 * unvalidated comments, number of new users. 
    391  * TODO : number of unvalidated elements 
     390 * @todo number of unvalidated elements 
    392391 * 
    393392 * @param string $start (mysql datetime format) 
     
    518517/** 
    519518 * Returns html description about recently published elements grouped by post date. 
    520  * TODO : clean up HTML output, currently messy and invalid ! 
     519 * @todo clean up HTML output, currently messy and invalid ! 
    521520 * 
    522521 * @param array $date_detail returned value of get_recent_post_dates() 
  • 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.