@@ 707-709 (lines=3) @@ | ||
704 | // ensure config class is set to something |
|
705 | $config_class = $this->_set_config_class( $config_class, $name ); |
|
706 | // run tests 1-4, 6, and 7 to verify all config params are set and valid |
|
707 | if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
|
708 | return null; |
|
709 | } |
|
710 | $config_option_name = $this->_generate_config_option_name( $section, $name ); |
|
711 | // if the config option name hasn't been added yet to the list of option names we're tracking, then do so now |
|
712 | if ( ! isset( $this->_addon_option_names[ $config_option_name ] ) ) { |
|
@@ 764-766 (lines=3) @@ | ||
761 | // get class name of the incoming object |
|
762 | $config_class = get_class( $config_obj ); |
|
763 | // run tests 1-5 and 9 to verify config |
|
764 | if ( ! $this->_verify_config_params( |
|
765 | $section, |
|
766 | $name, |
|
767 | $config_class, |
|
768 | $config_obj, |
|
769 | array( 1, 2, 3, 4, 7, 9 ) |
|
@@ 828-830 (lines=3) @@ | ||
825 | // ensure config class is set to something |
|
826 | $config_class = $this->_set_config_class( $config_class, $name ); |
|
827 | // run tests 1-4, 6 and 7 to verify that all params have been set |
|
828 | if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
|
829 | return null; |
|
830 | } |
|
831 | // now test if the requested config object exists, but suppress errors |
|
832 | if ( $this->_verify_config_params( $section, $name, $config_class, null, array( 7, 8 ), false ) ) { |
|
833 | // config already exists, so pass it back |