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