backupbuddy_backup/wp-content/plugins/backupbuddy/classes/core.php
/* pretty_meta_info()
	 *
	 * Translates meta information field names and values into nice readable forms.
	 *
	 * @param	string	$comment_line_name		Meta field name.
	 * @param	string	$comment_line_value		Value of meta item.
	 * @return	array|false 					Array with two entries: the updates comment line name and updated comment line value. false if empty.
	 *
	 */
pretty_meta_info()
Translates meta information field names and values into nice readable forms.

@param       string  $comment_line_name              Meta field name.
@param       string  $comment_line_value             Value of meta item.
@return      array|false                                     Array with two entries: the updates comment line name and updated comment line value. false if empty.
pretty_meta_info () Translates meta information field names and values into nice readable forms . @param string $comment_line_name Meta field name . @param string $comment_line_value Value of meta item . @return array|false Array with two entries : the updates comment line name and updated comment line value . false if empty .
public static function pretty_meta_info( $comment_line_name, $comment_line_value ) {
		if ( $comment_line_name == 'serial' ) {
			$comment_line_name = 'Unique serial identifier';
		} elseif ( $comment_line_name == 'siteurl' ) {
			$comment_line_name = 'Site URL';
		} elseif ( $comment_line_name == 'type' ) {
			$comment_line_name = 'Backup Type';
			if ( $comment_line_value == 'db' ) {
				$comment_line_value = 'Database';
			} elseif ( $comment_line_value == 'full' ) {
				$comment_line_value = 'Full';
			} elseif ( $comment_line_value == 'export' ) {
				$comment_line_value = 'Multisite Subsite Export';
			}
		} elseif ( $comment_line_name == 'profile' ) {
			$comment_line_name = 'Backup Profile';
		} elseif ( $comment_line_name == 'created' ) {
			$comment_line_name = 'Creation Date';
			if ( $comment_line_value != '' ) {
				$comment_line_value = pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( $comment_line_value ) );
			}
		} elseif ( $comment_line_name == 'bb_version' ) {
			$comment_line_name = 'BackupBuddy version at creation';
		} elseif ( $comment_line_name == 'wp_version' ) {
			$comment_line_name = 'WordPress version at creation';
		} elseif ( $comment_line_name == 'dat_path' ) {
			$comment_line_name = 'BackupBuddy data file (relative)';
		} elseif ( $comment_line_name == 'posts' ) {
			$comment_line_name = 'Total Posts';
		} elseif ( $comment_line_name == 'pages' ) {
			$comment_line_name = 'Total Pages';
		} elseif ( $comment_line_name == 'comments' ) {
			$comment_line_name = 'Total Comments';
		} elseif ( $comment_line_name == 'users' ) {
			$comment_line_name = 'Total Users';
		} elseif ( $comment_line_name == 'note' ) {
			$comment_line_name = 'User-specified note';
			if ( $comment_line_value != '' ) {
				$comment_line_value = '"' . htmlentities( $comment_line_value ) . '"';
			}
		} else {
			$comment_line_name = $comment_line_name;
		}
		if ( $comment_line_value != '' ) {
			return array( $comment_line_name, $comment_line_value );
		} else {
			return array( $comment_line_name, '-Empty-' );
		}
	}
public static function pretty_meta_info ( $ comment_line_name , $ comment_line_value ) { if ( $ comment_line_name == 'serial' ) { $ comment_line_name = 'Unique serial identifier' ; } elseif ( $ comment_line_name == 'siteurl' ) { $ comment_line_name = 'Site URL' ; } elseif ( $ comment_line_name == 'type' ) { $ comment_line_name = 'Backup Type' ; if ( $ comment_line_value == 'db' ) { $ comment_line_value = 'Database' ; } elseif ( $ comment_line_value == 'full' ) { $ comment_line_value = 'Full' ; } elseif ( $ comment_line_value == 'export' ) { $ comment_line_value = 'Multisite Subsite Export' ; } } elseif ( $ comment_line_name == 'profile' ) { $ comment_line_name = 'Backup Profile' ; } elseif ( $ comment_line_name == 'created' ) { $ comment_line_name = 'Creation Date' ; if ( $ comment_line_value != '' ) { $ comment_line_value = pb_backupbuddy :: $ format -> date ( pb_backupbuddy :: $ format -> localize_time ( $ comment_line_value ) ) ; } } elseif ( $ comment_line_name == 'bb_version' ) { $ comment_line_name = 'BackupBuddy version at creation' ; } elseif ( $ comment_line_name == 'wp_version' ) { $ comment_line_name = 'WordPress version at creation' ; } elseif ( $ comment_line_name == 'dat_path' ) { $ comment_line_name = 'BackupBuddy data file (relative)' ; } elseif ( $ comment_line_name == 'posts' ) { $ comment_line_name = 'Total Posts' ; } elseif ( $ comment_line_name == 'pages' ) { $ comment_line_name = 'Total Pages' ; } elseif ( $ comment_line_name == 'comments' ) { $ comment_line_name = 'Total Comments' ; } elseif ( $ comment_line_name == 'users' ) { $ comment_line_name = 'Total Users' ; } elseif ( $ comment_line_name == 'note' ) { $ comment_line_name = 'User-specified note' ; if ( $ comment_line_value != '' ) { $ comment_line_value = '"' . htmlentities ( $ comment_line_value ) . '"' ; } } else { $ comment_line_name = $ comment_line_name ; } if ( $ comment_line_value != '' ) { return array ( $ comment_line_name , $ comment_line_value ) ; } else { return array ( $ comment_line_name , '-Empty-' ) ; } }
pretty_meta_info()
 Translates meta information field names and values into nice readable forms.
pretty_meta_info () Translates meta information field names and values into nice readable forms .