@@ 100-108 (lines=9) @@ | ||
97 | do_action( 'AHEE__EE_Network_Config___load_config__start', $this ); |
|
98 | $config = $this->get_config(); |
|
99 | foreach ( $config as $config_prop => $settings ) { |
|
100 | if ( is_object( $settings ) && property_exists( $this, $config_prop ) ) { |
|
101 | $this->{$config_prop} = apply_filters( 'FHEE__EE_Network_Config___load_config__config_settings', $settings, $config_prop, $this ); |
|
102 | if ( method_exists( $settings, 'populate' ) ) { |
|
103 | $this->{$config_prop}->populate(); |
|
104 | } |
|
105 | if ( method_exists( $settings, 'do_hooks' ) ) { |
|
106 | $this->{$config_prop}->do_hooks(); |
|
107 | } |
|
108 | } |
|
109 | } |
|
110 | if ( apply_filters( 'FHEE__EE_Network_Config___load_config__update_network_config', false ) ) { |
|
111 | $this->update_config(); |
@@ 250-259 (lines=10) @@ | ||
247 | $config, |
|
248 | $this |
|
249 | ); |
|
250 | if ( is_object( $settings ) && property_exists( $this, $config ) ) { |
|
251 | $this->{$config} = apply_filters( 'FHEE__EE_Config___load_core_config__' . $config, $settings ); |
|
252 | //call configs populate method to ensure any defaults are set for empty values. |
|
253 | if ( method_exists( $settings, 'populate' ) ) { |
|
254 | $this->{$config}->populate(); |
|
255 | } |
|
256 | if ( method_exists( $settings, 'do_hooks' ) ) { |
|
257 | $this->{$config}->do_hooks(); |
|
258 | } |
|
259 | } |
|
260 | } |
|
261 | if ( apply_filters( 'FHEE__EE_Config___load_core_config__update_espresso_config', false ) ) { |
|
262 | $this->update_espresso_config(); |