ImportResultsUtil Class Reference

Public Member Functions

 __construct (Import $import)
 addRowDataResults (ImportRowDataResultsUtil $importRowDataResultsUtil)
 processStatusAndMessagesForEachRow ()

Static Public Member Functions

static convertSerializedMessagesToDisplayReadyString ($messages)

Protected Attributes

 $import
 $rowResultsData = array()

Detailed Description

Helper class for working with import results as rows are processed. As rows are processed, their individual row results can be collected in this class. Additionally methods in the class can be used to update the rows status and serialize messages for each row that is attempted to be imported.

Definition at line 42 of file ImportResultsUtil.php.


Constructor & Destructor Documentation

__construct ( Import import  ) 
Parameters:
object $import

Definition at line 59 of file ImportResultsUtil.php.


Member Function Documentation

addRowDataResults ( ImportRowDataResultsUtil importRowDataResultsUtil  ) 

Given an ImportRowDataResultsUtil, add it to the row results data collection.

Parameters:
object $importRowDataResultsUtil

Definition at line 68 of file ImportResultsUtil.php.

processStatusAndMessagesForEachRow (  ) 

After the rows have been imported or attempted to be imported, process the status and messages of each row to the temporary table where these rows are stored. This information can then be used later as feedback in the user interface on any issues that need resolving any of the rows.

Definition at line 78 of file ImportResultsUtil.php.

static convertSerializedMessagesToDisplayReadyString ( messages  )  [static]
Parameters:
array $messages
Returns:
null|string

Definition at line 104 of file ImportResultsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jun 26 07:10:26 2017