public/wordpress/wp-content/plugins/backupbuddy/classes/core.php
/* pretty_destination_type()
	 *
	 * Take a destination type slug and change it into a user-friendly display of the destination type.
	 *
	 * @param	string		Internal destination slug. Eg: s3
	 * @return	string		Friendly destination title. Eg: Amazon S3
	 *
	 */
pretty_destination_type()
Take a destination type slug and change it into a user-friendly display of the destination type.

@param       string          Internal destination slug. Eg: s3
@return      string          Friendly destination title. Eg: Amazon S3
pretty_destination_type () Take a destination type slug and change it into a user - friendly display of the destination type . @param string Internal destination slug . Eg : s3 @return string Friendly destination title . Eg : Amazon S3
public static function pretty_destination_type( $type ) {
		if ( $type == 'rackspace' ) {
			return 'Rackspace';
		} elseif ( $type == 'email' ) {
			return 'Email';
		} elseif ( $type == 's3' ) {
			return 'Amazon S3';
		} elseif ( $type == 's32' ) {
			return 'Amazon S3 v2';
		} elseif ( $type == 's33' ) {
			return 'Amazon S3 v3';
		} elseif ( $type == 'ftp' ) {
			return 'FTP';
		} elseif ( $type == 'stash2' ) {
			return 'BackupBuddy Stash v2';
		} elseif ( $type == 'stash3' ) {
			return 'BackupBuddy Stash v3';
		} elseif ( $type == 'sftp' ) {
			return 'sFTP';
		} elseif ( $type == 'dropbox2' ) {
			return 'Dropbox v2';
		} elseif ( $type == 'gdrive' ) {
			return 'Google Drive';
		} elseif ( $type == 'site' ) {
			return 'BackupBuddy Deployment';
		} else {
			return $type;
		}
	}
public static function pretty_destination_type ( $ type ) { if ( $ type == 'rackspace' ) { return 'Rackspace' ; } elseif ( $ type == 'email' ) { return 'Email' ; } elseif ( $ type == 's3' ) { return 'Amazon S3' ; } elseif ( $ type == 's32' ) { return 'Amazon S3 v2' ; } elseif ( $ type == 's33' ) { return 'Amazon S3 v3' ; } elseif ( $ type == 'ftp' ) { return 'FTP' ; } elseif ( $ type == 'stash2' ) { return 'BackupBuddy Stash v2' ; } elseif ( $ type == 'stash3' ) { return 'BackupBuddy Stash v3' ; } elseif ( $ type == 'sftp' ) { return 'sFTP' ; } elseif ( $ type == 'dropbox2' ) { return 'Dropbox v2' ; } elseif ( $ type == 'gdrive' ) { return 'Google Drive' ; } elseif ( $ type == 'site' ) { return 'BackupBuddy Deployment' ; } else { return $ type ; } }
pretty_destination_type()
 Take a destination type slug and change it into a user-friendly display of the destination type.
pretty_destination_type () Take a destination type slug and change it into a user - friendly display of the destination type .