public/wordpress/wp-content/plugins/backupbuddy/pluginbuddy/classes/ui.php
/**
	 *	pb_backupbuddy::alert()
	 *
	 *	Displays a message to the user at the top of the page when in the dashboard.
	 *
	 *	@param		string		$message		Message you want to display to the user.
	 *	@param		boolean		$error			OPTIONAL! true indicates this alert is an error and displays as red. Default: false
	 *	@param		int			$error_code		OPTIONAL! Error code number to use in linking in the wiki for easy reference.
	 *	@return		null
	 */
:alert()
Displays a message to the user at the top of the page when in the dashboard.

@param          string          $message                Message you want to display to the user.
@param          boolean         $error                  OPTIONAL. true indicates this alert is an error and displays as red. Default: false
@param          int                     $error_code             OPTIONAL. Error code number to use in linking in the wiki for easy reference.
@return         null
: alert () Displays a message to the user at the top of the page when in the dashboard . @param string $message Message you want to display to the user . @param boolean $error OPTIONAL . true indicates this alert is an error and displays as red . Default : false @param int $error_code OPTIONAL . Error code number to use in linking in the wiki for easy reference . @return null
public function alert( $message, $error = false, $error_code = '', $rel_tag = '', $more_css = '' ) {
		$log_error = false;
		echo '<div id="message" style="' . $more_css . '" rel="' . $rel_tag . '" class="pb_backupbuddy_alert ';
		if ( $error === false ) {
			echo 'updated fade';
		} else {
			echo 'error';
			$log_error = true;
		}
		if ( $error_code != '' ) {
			$message .= ' <a href="http://ithemes.com/codex/page/BackupBuddy:_Error_Codes#' . $error_code . '" target="_blank"><i>' . pb_backupbuddy::settings( 'name' ) . ' Error Code ' . $error_code . ' - Click for more details.</i></a>';
			$log_error = true;
		}
		if ( $log_error === true ) {
			pb_backupbuddy::log( $message . ' Error Code: ' . $error_code, 'error' );
		}
		echo '" >' . $message . '</div>';
	}
public function alert ( $ message , $ error = false , $ error_code = '' , $ rel_tag = '' , $ more_css = '' ) { $ log_error = false ; echo '<div id="message" style="' . $ more_css . '" rel="' . $ rel_tag . '" class="pb_backupbuddy_alert ' ; if ( $ error === false ) { echo 'updated fade' ; } else { echo 'error' ; $ log_error = true ; } if ( $ error_code != '' ) { $ message .= ' <a href="http://ithemes.com/codex/page/BackupBuddy:_Error_Codes#' . $ error_code . '" target="_blank"><i>' . pb_backupbuddy :: settings ( 'name' ) . ' Error Code ' . $ error_code . ' - Click for more details.</i></a>' ; $ log_error = true ; } if ( $ log_error === true ) { pb_backupbuddy :: log ( $ message . ' Error Code: ' . $ error_code , 'error' ) ; } echo '" >' . $ message . '</div>' ; }
pb_backupbuddy::alert()
      Displays a message to the user at the top of the page when in the dashboard.
pb_backupbuddy :: alert () Displays a message to the user at the top of the page when in the dashboard .