backupbuddy_backup/wp-content/plugins/backupbuddy/lib/xzipbuddy/zbzipexec.php
/**
		 *	is_available()
		 *	
		 *	A function that tests for the availability of the specific method and its available modes. Will test for
		 *  multiple modes (zip & unzip) and only return false if neither is available. Actual available modes will
		 *  be indicated in the method attributes.
		 *
		 *  Note: in this case as the zip and unzip capabilities are provided by external commands we need to test
		 *  for the availability of both of them and set attributes accordingly
		 *	
		 *	@param		string	$tempdir	Temporary directory to use for any test files (must be writeable)
		 *	@return		bool				True if the method is available for at least one mode, false otherwise
		 *
		 */


A function that tests for the availability of the specific method and its available modes. Will test for
multiple modes (zip & unzip) and only return false if neither is available. Actual available modes will
be indicated in the method attributes.

in this case as the zip and unzip capabilities are provided by external commands we need to test
for the availability of both of them and set attributes accordingly

@param          string  $tempdir        Temporary directory to use for any test files (must be writeable)
@return         bool                            True if the method is available for at least one mode, false otherwise
A function that tests for the availability of the specific method and its available modes . Will test for multiple modes ( zip & unzip ) and only return false if neither is available . Actual available modes will be indicated in the method attributes . in this case as the zip and unzip capabilities are provided by external commands we need to test for the availability of both of them and set attributes accordingly @param string $tempdir Temporary directory to use for any test files ( must be writeable ) @return bool True if the method is available for at least one mode false otherwise
public function is_available( $tempdir ) {
			$result = false;
			switch ( $this->get_os_type() ) {
				case self::OS_TYPE_NIX:
					$result = $this->is_available_generic( $tempdir );
					break;
				case self::OS_TYPE_WIN:
					$result = $this->is_available_generic( $tempdir );
					break;
				default:
					$result = false;
			}
			return $result;
		}
public function is_available ( $ tempdir ) { $ result = false ; switch ( $ this -> get_os_type ( ) ) { case self :: OS_TYPE_NIX : $ result = $ this -> is_available_generic ( $ tempdir ) ; break ; case self :: OS_TYPE_WIN : $ result = $ this -> is_available_generic ( $ tempdir ) ; break ; default : $ result = false ; } return $ result ; }
is_available()
is_available ()
// This is just a nicety for now until platform handling is fully resolved