private function _applyDefaults() {
		foreach($this->_flags as $flag => $settings) {
			$this[$flag] = $settings['default'];
		}

		foreach($this->_options as $option => $settings) {
			// If the default is 0 we should still let it be set.
			if (!empty($settings['default']) || $settings['default'] === 0) {
				$this[$option] = $settings['default'];
			}
		}
	}
private function _applyDefaults() {
		foreach($this->_flags as $flag => $settings) {
			$this[$flag] = $settings['default'];
		}

		foreach($this->_options as $option => $settings) {
			// If the default is 0 we should still let it be set.
			if (!empty($settings['default']) || $settings['default'] === 0) {
				$this[$option] = $settings['default'];
			}
		}
	}
private function _applyDefaults ( ) { foreach ( $ this -> _flags as $ flag => $ settings ) { $ this [ $ flag ] = $ settings [ 'default' ] ; } foreach ( $ this -> _options as $ option => $ settings ) { // If the default is 0 we should still let it be set. if ( ! empty ( $ settings [ 'default' ] ) || $ settings [ 'default' ] === 0 ) { $ this [ $ option ] = $ settings [ 'default' ] ; } } }
This applies the default values, if any, of all of the
flags and options, so that if there is a default value
it will be available.
This applies the default values if any of all of the flags and options so that if there is a default value it will be available .