public/wordpress/wp-content/plugins/backupbuddy/destinations/stash2/init.php
/* _uploadFailed()
	 *
	 * Reports to the Stash API that the upload failed.
	 * @return	bool		True if reporting failure succeeded, else false.
	 *
	 */
_uploadFailed()
Reports to the Stash API that the upload failed.
@return      bool            True if reporting failure succeeded, else false.
_uploadFailed () Reports to the Stash API that the upload failed . @return bool True if reporting failure succeeded else false .
public static function _uploadFailed( $settings ) {
		pb_backupbuddy::status( 'details', 'Notifying Stash of upload failure.' );
		$additionalParams =array(
			'upload_id' => $settings['_stash_upload_id'],
		);
		$failResult = self::stashAPI( $settings, 'upload-fail', $additionalParams );
		if ( ( ! isset( $failResult['success'] ) || ( true !== $failResult['success'] ) ) ) {
			pb_backupbuddy::status( 'error', 'Warning #32736326: Error notifying Stash of upload failure. Details: `' . print_r( $failResult, true ) . '`.' );
			return false;
		} else {
			pb_backupbuddy::status( 'details', 'Stash notified of upload fail.' );
			return true;
		}
	}
public static function _uploadFailed ( $ settings ) { pb_backupbuddy :: status ( 'details' , 'Notifying Stash of upload failure.' ) ; $ additionalParams = array ( 'upload_id' => $ settings [ '_stash_upload_id' ] , ) ; $ failResult = self :: stashAPI ( $ settings , 'upload-fail' , $ additionalParams ) ; if ( ( ! isset ( $ failResult [ 'success' ] ) || ( true !== $ failResult [ 'success' ] ) ) ) { pb_backupbuddy :: status ( 'error' , 'Warning #32736326: Error notifying Stash of upload failure. Details: `' . print_r ( $ failResult , true ) . '`.' ) ; return false ; } else { pb_backupbuddy :: status ( 'details' , 'Stash notified of upload fail.' ) ; return true ; } }
_uploadFailed()
 Reports to the Stash API that the upload failed.
_uploadFailed () Reports to the Stash API that the upload failed .