|
@@ 756-758 (lines=3) @@
|
| 753 |
|
// ensure config class is set to something |
| 754 |
|
$config_class = $this->_set_config_class($config_class, $name); |
| 755 |
|
// run tests 1-4, 6, and 7 to verify all config params are set and valid |
| 756 |
|
if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) { |
| 757 |
|
return null; |
| 758 |
|
} |
| 759 |
|
$config_option_name = $this->_generate_config_option_name($section, $name); |
| 760 |
|
// if the config option name hasn't been added yet to the list of option names we're tracking, then do so now |
| 761 |
|
if (! isset($this->_addon_option_names[$config_option_name])) { |
|
@@ 814-816 (lines=3) @@
|
| 811 |
|
// get class name of the incoming object |
| 812 |
|
$config_class = get_class($config_obj); |
| 813 |
|
// run tests 1-5 and 9 to verify config |
| 814 |
|
if (! $this->_verify_config_params( |
| 815 |
|
$section, |
| 816 |
|
$name, |
| 817 |
|
$config_class, |
| 818 |
|
$config_obj, |
| 819 |
|
array(1, 2, 3, 4, 7, 9) |
|
@@ 879-881 (lines=3) @@
|
| 876 |
|
// ensure config class is set to something |
| 877 |
|
$config_class = $this->_set_config_class($config_class, $name); |
| 878 |
|
// run tests 1-4, 6 and 7 to verify that all params have been set |
| 879 |
|
if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) { |
| 880 |
|
return null; |
| 881 |
|
} |
| 882 |
|
// now test if the requested config object exists, but suppress errors |
| 883 |
|
if ($this->_verify_config_params($section, $name, $config_class, null, array(7, 8), false)) { |
| 884 |
|
// config already exists, so pass it back |