public/wordpress/wp-content/plugins/backupbuddy/lib/xzipbuddy/zipbuddy.php
/**
		 *	derive_optional_bool()
		 *
		 *	Utility function to derive the value of an optional boolean flag based on either
		 *	a specifc value being given or the related global option being set or a given
		 *	defautl value otherise. If the provided $value is null then this forces the use
		 *	of the global option if it is set or otherwise the default value given
		 *
		 *	@param		string		$option		The option name in the global options array
		 *	@param		mixed		$value		Should be bool true|false but could be null
		 * 	@param		bool		$default	The default value to use if no other provided/available
		 *	@return		bool					Derived boolean value
		 *
		 */
derive_optional_bool()
Utility function to derive the value of an optional boolean flag based on either
a specifc value being given or the related global option being set or a given
defautl value otherise. If the provided $value is null then this forces the use
of the global option if it is set or otherwise the default value given

@param          string          $option         The option name in the global options array
@param          mixed           $value          Should be bool true|false but could be null
@param          bool            $default        The default value to use if no other provided/available
@return         bool                                    Derived boolean value
derive_optional_bool () Utility function to derive the value of an optional boolean flag based on either a specifc value being given or the related global option being set or a given defautl value otherise . If the provided $value is null then this forces the use of the global option if it is set or otherwise the default value given @param string $option The option name in the global options array @param mixed $value Should be bool true|false but could be null @param bool $default The default value to use if no other provided / available @return bool Derived boolean value
protected function derive_optional_bool( $option, $value, $default, $empty_option_default = false ) {
		 	$result = false;
		 	if ( is_bool( $value )) {
		 		$result = $value;
		 	} elseif ( isset( pb_backupbuddy::$options[ $option ] ) ) {
		 		$result = ( ( pb_backupbuddy::$options[ $option ] == '1' ) || ( pb_backupbuddy::$options[ $option ] == true ) ) ? true : $empty_option_default ;
		 	} else {
		 		$result = $default;
		 	}
		 	return $result;
		 }
protected function derive_optional_bool ( $ option , $ value , $ default , $ empty_option_default = false ) { $ result = false ; if ( is_bool ( $ value ) ) { $ result = $ value ; } elseif ( isset ( pb_backupbuddy :: $ options [ $ option ] ) ) { $ result = ( ( pb_backupbuddy :: $ options [ $ option ] == '1' ) || ( pb_backupbuddy :: $ options [ $ option ] == true ) ) ? true : $ empty_option_default ; } else { $ result = $ default ; } return $ result ; }
derive_optional_bool()
      Utility function to derive the value of an optional boolean flag based on either
      a specifc value being given or the related global option being set or a given
      defautl value otherise.
derive_optional_bool () Utility function to derive the value of an optional boolean flag based on either a specifc value being given or the related global option being set or a given defautl value otherise .