@@ 412-421 (lines=10) @@ | ||
409 | * |
|
410 | * @return array |
|
411 | */ |
|
412 | public static function get_active_messengers_in_db() { |
|
413 | EE_Error::doing_it_wrong( |
|
414 | __METHOD__, |
|
415 | __( 'Please use EE_Message_Resource_Manager::get_active_messengers_option() instead.', 'event_espresso' ), |
|
416 | '4.9.0' |
|
417 | ); |
|
418 | /** @var EE_Message_Resource_Manager $Message_Resource_Manager */ |
|
419 | $Message_Resource_Manager = EE_Registry::instance()->load_lib( 'Message_Resource_Manager' ); |
|
420 | return $Message_Resource_Manager->get_active_messengers_option(); |
|
421 | } |
|
422 | ||
423 | ||
424 | ||
@@ 436-445 (lines=10) @@ | ||
433 | * |
|
434 | * @return bool FALSE if not updated, TRUE if updated. |
|
435 | */ |
|
436 | public static function update_active_messengers_in_db( $data_to_save ) { |
|
437 | EE_Error::doing_it_wrong( |
|
438 | __METHOD__, |
|
439 | __( 'Please use EE_Message_Resource_Manager::update_active_messengers_option() instead.', 'event_espresso' ), |
|
440 | '4.9.0' |
|
441 | ); |
|
442 | /** @var EE_Message_Resource_Manager $Message_Resource_Manager */ |
|
443 | $Message_Resource_Manager = EE_Registry::instance()->load_lib( 'Message_Resource_Manager' ); |
|
444 | return $Message_Resource_Manager->update_active_messengers_option( $data_to_save ); |
|
445 | } |
|
446 | ||
447 | ||
448 | /** |
@@ 430-439 (lines=10) @@ | ||
427 | /** |
|
428 | * @param string $method |
|
429 | */ |
|
430 | public function _class_is_deprecated( $method ) { |
|
431 | EE_Error::doing_it_wrong( |
|
432 | 'EE_messages::' . $method, |
|
433 | __( 'EE_messages has been deprecated. Please use EE_Message_Resource_Manager instead.' ), |
|
434 | '4.9.0', |
|
435 | '4.10.0.p' |
|
436 | ); |
|
437 | // Please use EE_Message_Resource_Manager instead |
|
438 | $this->_message_resource_manager = EE_Registry::instance()->load_lib( 'Message_Resource_Manager' ); |
|
439 | } |
|
440 | ||
441 | ||
442 |