|
@@ 679-681 (lines=3) @@
|
| 676 |
|
// ensure config class is set to something |
| 677 |
|
$config_class = $this->_set_config_class( $config_class, $name ); |
| 678 |
|
// run tests 1-4, 6, and 7 to verify all config params are set and valid |
| 679 |
|
if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
| 680 |
|
return null; |
| 681 |
|
} |
| 682 |
|
$config_option_name = $this->_generate_config_option_name( $section, $name ); |
| 683 |
|
// if the config option name hasn't been added yet to the list of option names we're tracking, then do so now |
| 684 |
|
if ( ! isset( $this->_addon_option_names[ $config_option_name ] ) ) { |
|
@@ 732-734 (lines=3) @@
|
| 729 |
|
// get class name of the incoming object |
| 730 |
|
$config_class = get_class( $config_obj ); |
| 731 |
|
// run tests 1-5 and 9 to verify config |
| 732 |
|
if ( ! $this->_verify_config_params( |
| 733 |
|
$section, |
| 734 |
|
$name, |
| 735 |
|
$config_class, |
| 736 |
|
$config_obj, |
| 737 |
|
array( 1, 2, 3, 4, 7, 9 ) |
|
@@ 794-796 (lines=3) @@
|
| 791 |
|
// ensure config class is set to something |
| 792 |
|
$config_class = $this->_set_config_class( $config_class, $name ); |
| 793 |
|
// run tests 1-4, 6 and 7 to verify that all params have been set |
| 794 |
|
if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) { |
| 795 |
|
return null; |
| 796 |
|
} |
| 797 |
|
// now test if the requested config object exists, but suppress errors |
| 798 |
|
if ( $this->_verify_config_params( $section, $name, $config_class, null, array( 7, 8 ), false ) ) { |
| 799 |
|
// config already exists, so pass it back |