All Data Structures Functions Variables Pages
Public Member Functions
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:
Generated on Tue Jan 21 2020 07:10:38