@@ 802-804 (lines=3) @@ | ||
799 | // ensure config class is set to something |
|
800 | $config_class = $this->_set_config_class( $config_class, $name ); |
|
801 | // run tests 1-4, 6 and 7 to verify that all params have been set |
|
802 | if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
|
803 | return null; |
|
804 | } |
|
805 | // now test if the requested config object exists, but suppress errors |
|
806 | if ( $this->_verify_config_params( $section, $name, $config_class, null, array( 7, 8 ), false ) ) { |
|
807 | // config already exists, so pass it back |
|
@@ 681-683 (lines=3) @@ | ||
678 | // ensure config class is set to something |
|
679 | $config_class = $this->_set_config_class( $config_class, $name ); |
|
680 | // run tests 1-4, 6, and 7 to verify all config params are set and valid |
|
681 | if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
|
682 | return null; |
|
683 | } |
|
684 | $config_option_name = $this->_generate_config_option_name( $section, $name ); |
|
685 | // if the config option name hasn't been added yet to the list of option names we're tracking, then do so now |
|
686 | if ( ! isset( $this->_addon_option_names[ $config_option_name ] ) ) { |
|
@@ 738-740 (lines=3) @@ | ||
735 | // get class name of the incoming object |
|
736 | $config_class = get_class( $config_obj ); |
|
737 | // run tests 1-5 and 9 to verify config |
|
738 | if ( ! $this->_verify_config_params( |
|
739 | $section, |
|
740 | $name, |
|
741 | $config_class, |
|
742 | $config_obj, |
|
743 | array( 1, 2, 3, 4, 7, 9 ) |