|
@@ 653-655 (lines=3) @@
|
| 650 |
|
// ensure config class is set to something |
| 651 |
|
$config_class = $this->_set_config_class( $config_class, $name ); |
| 652 |
|
// run tests 1-4, 6, and 7 to verify all config params are set and valid |
| 653 |
|
if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ))) { |
| 654 |
|
return null; |
| 655 |
|
} |
| 656 |
|
$config_option_name = $this->_generate_config_option_name( $section, $name ); |
| 657 |
|
// if the config option name hasn't been added yet to the list of option names we're tracking, then do so now |
| 658 |
|
if ( ! isset( $this->_config_option_names[ $config_option_name ] )) { |
|
@@ 702-704 (lines=3) @@
|
| 699 |
|
// get class name of the incoming object |
| 700 |
|
$config_class = get_class( $config_obj ); |
| 701 |
|
// run tests 1-5 and 9 to verify config |
| 702 |
|
if ( ! $this->_verify_config_params( $section, $name, $config_class, $config_obj, array( 1, 2, 3, 4, 7, 9 ))) { |
| 703 |
|
return false; |
| 704 |
|
} |
| 705 |
|
$config_option_name = $this->_generate_config_option_name( $section, $name ); |
| 706 |
|
// check if config object has been added to db by seeing if config option name is in $this->_config_option_names array |
| 707 |
|
if ( ! isset( $this->_config_option_names[ $config_option_name ] )) { |
|
@@ 751-753 (lines=3) @@
|
| 748 |
|
// ensure config class is set to something |
| 749 |
|
$config_class = $this->_set_config_class( $config_class, $name ); |
| 750 |
|
// run tests 1-4, 6 and 7 to verify that all params have been set |
| 751 |
|
if ( ! $this->_verify_config_params( $section, $name, $config_class, NULL, array( 1, 2, 3, 4, 5, 6 ))) { |
| 752 |
|
return NULL; |
| 753 |
|
} |
| 754 |
|
// now test if the requested config object exists, but suppress errors |
| 755 |
|
if ( $this->_verify_config_params( $section, $name, $config_class, NULL, array( 7, 8 ), FALSE )) { |
| 756 |
|
// config already exists, so pass it back |