ImportSanitizeResultsUtil Class Reference

Public Member Functions

 setModelShouldNotBeSaved ()
 addMessage ($message)
 addRelatedModelMessage ($message)
 getMessages ()
 shouldSaveModel ()
 getRelatedModelMessages ()
 setMessages ($messages=array())
 getMatchedModel ()
 setMatchedModel ($matchedModel)

Detailed Description

Helper class for working resulting messages from sanitizing a values in a row.

Definition at line 40 of file ImportSanitizeResultsUtil.php.


Member Function Documentation

setModelShouldNotBeSaved (  ) 
See also:
$saveModel

Definition at line 72 of file ImportSanitizeResultsUtil.php.

addMessage ( message  ) 

Given a message, add it to the messages collection.

Parameters:
string $message

Definition at line 81 of file ImportSanitizeResultsUtil.php.

addRelatedModelMessage ( message  ) 

Given a message, add it to the related model messages collection.

Parameters:
string $message

Definition at line 91 of file ImportSanitizeResultsUtil.php.

getMessages (  ) 
Returns:
An array of messages.

Definition at line 100 of file ImportSanitizeResultsUtil.php.

shouldSaveModel (  ) 
Returns:
true/false if the model should be saved or skipped.

Definition at line 108 of file ImportSanitizeResultsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Mar 29 07:10:27 2017