Class InlineEmail
InlineEmail class. InlineEmail is the data structure for taking in and processing data for outbound email, specifically from the inline email widget.
It is used by the InlineEmailForm widget and site/inlineEmail, and is
designed around this principle: that the email is being sent in some context
that is dictated by a "target model". Special cases for behavior of the class
have been built this way, i.e. when the target model is a Quote, the
insertable attributes should include those of both associated contact and
account as well as the quote, and when the email is sent, the action history
record that gets created should appropriately describe the event happened, i.e.
by saying that "Quote #X was issued by email" rather than merely "user X has
sent contact Y an email."
The following describes the scenarios of this model:
- "custom" is used when a modified email has been submitted for processing or sending
- "template" is used when the form has been submitted to re-create the email based on a template.
- Blank/empty string is for when there's a new and blank email (i.e. initial
	rendering of the inline email widget InlineEmailForm)
- CComponent
- 
			 CModel
			 implements 
IteratorAggregate, 
			
ArrayAccess CModel
			 implements 
IteratorAggregate, 
			
ArrayAccess
- 
			 CFormModel CFormModel
- 
			 InlineEmail InlineEmail
Direct known subclasses
TestEmailActionForm| 
			 public 
			array
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			array
			
			 | |
| 
			 public 
			array
			
			 | 
		#
		 behaviors( )Returns a list of behaviors that this model should behave as. The return value should be an array of behavior configurations indexed by behavior names. Each behavior configuration can be either a string specifying the behavior class or an array of the following structure: 
'behaviorName'=>array(
    'class'=>'path.to.BehaviorClass',
    'property1'=>'value1',
    'property2'=>'value2',
)
 | 
| 
			 public static
			
			
			 | 
		#
		 insertedPattern( string $name, string $inside, boolean $re = 0, string $reFlags = '' )Creates a pattern for finding or inserting content into the email body. | 
| 
			 public 
			type
			
			 | |
| 
			 public 
			array
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			array
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			type
			
			 | |
| 
			 public 
			type
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | 
		#
		 parseMailingList( string $attribute, array $params = array() )Validation function for lists of email addresses. | 
| 
			 public 
			
			
			 | 
		#
		 insertSignature( array $wrap = array('<br /><br />', '') )Inserts a signature into the body, if none can be found. | 
| 
			 public 
			
			
			 | 
		#
		 insertTrackingImage( boolean $replace = false )Search for an existing tracking image and insert a new one if none are present. | 
| 
			 public static
			
			
			 | |
| 
			 public 
			
			
			 | 
		#
		 insertInBody( string $content, boolean $beginning = 0, boolean $return = 0 )Inserts something near the end of the body in the HTML email. | 
| 
			 public static
			
			
			 | |
| 
			 public 
			
			
			 | 
		#
		 prepareBody( mixed $postReplace = 0 )Prepare the email body for sending or customization by the user. | 
| 
			 public 
			array
			
			 | |
| 
			 public 
			
			
			 | 
		#
		 trackEmail( integer $actionId )Save the tracking record for this email, but only if an image was inserted. | 
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | 
		#
		 appendDoNotEmailLink( Insert a "Do Not Email" link into the body of the email message. The link contains the contact's trackingKey in it's get parameters. When clicked, the contact's doNotEmail field will be set to 1. | 
| 
__construct(), 
attributeNames(), 
init()
		 | 
| 
addError(), 
addErrors(), 
afterConstruct(), 
afterValidate(), 
beforeValidate(), 
clearErrors(), 
createValidators(), 
generateAttributeLabel(), 
getAttributeLabel(), 
getAttributes(), 
getError(), 
getErrors(), 
getIterator(), 
getSafeAttributeNames(), 
getScenario(), 
getValidatorList(), 
getValidators(), 
hasErrors(), 
isAttributeRequired(), 
isAttributeSafe(), 
offsetExists(), 
offsetGet(), 
offsetSet(), 
offsetUnset(), 
onAfterConstruct(), 
onAfterValidate(), 
onBeforeValidate(), 
onUnsafeAttribute(), 
setAttributes(), 
setScenario(), 
unsetAttributes(), 
validate()
		 | 
| 
__call(), 
__get(), 
__isset(), 
__set(), 
__unset(), 
asa(), 
attachBehavior(), 
attachBehaviors(), 
attachEventHandler(), 
canGetProperty(), 
canSetProperty(), 
detachBehavior(), 
detachBehaviors(), 
detachEventHandler(), 
disableBehavior(), 
disableBehaviors(), 
enableBehavior(), 
enableBehaviors(), 
evaluateExpression(), 
getEventHandlers(), 
hasEvent(), 
hasEventHandler(), 
hasProperty(), 
raiseEvent()
		 | 
| string | 
				SIGNATURETAG
		 | 'Signature' | |
| string | 
				TRACKTAG
		 | 'OpenedEmail' | |
| string | 
				AHTAG
		 | 'ActionHeader' | |
| string | 
				UIDREGEX
		 | '/uid.([0-9a-f]{32})/' | 
| 
			public  
			string
		 | $to |  | 
			#
			 Email address of the addressees | 
| 
			public  
			string
		 | $cc |  | 
			#
			 CC email address(es), if applicable | 
| 
			public  
			string
		 | $bcc |  | 
			#
			 BCC email address(es), if applicable | 
| 
			public  
			string
		 | $subject |  | 
			#
			 Email subject | 
| 
			public  
			string
		 | $message |  | 
			#
			 Email body/content | 
| 
			public  
			strng
		 | $emailSendTime | '' | 
			#
			 Email Send Time | 
| 
			public  
			integer
		 | $emailSendTimeParsed | 0 | 
			#
			 Email Send Time in unix timestamp format | 
| 
			public  
			integer
		 | $template | 0 | 
			#
			 Template ID | 
| 
			public  
			string
		 | $modelName |  | 
			#
			 Stores the name of the model associated with the email i.e. Contacts or Quote. | 
| 
			public  
			integer
		 | $modelId |  | |
| 
			public  
			boolean
		 | $contactFlag | true | 
			#
			 Asssociate emails with the linked Contact (true) or the record itself (false) | 
| 
			public  
			array
		 | $mailingList | array() | |
| 
			public  
			array
		 | $attachments | array() | |
| 
			public  
			string
		 | $emailBody | '' | |
| 
			public  
			boolean
		 | $preview | false | |
| 
			public  
			boolean
		 | $stageEmail | false | |
| 
			public  
			boolean
		 | $requireSubjectOnCustom | true | 
			#
			 $requireSubjectOnCustom Allows subject requirement to be bypassed. TODO: remove this once scenario code is refactored | 
| 
			public  
			string
		 | $actionHeader | 
			#
			 (read-only) A mock-up of the email's header fields to be inserted into the email actions' bodies, for display purposes. | 
| 
			public  
			array
		 | $insertableAttributes | 
			#
			 (read-only) Attributes for the inline email editor that can be inserted into the message. | 
| 
			public  
			array
		 | $recipientContacts | 
			#
			 (read-only) an array of contact records identified by recipient email address. | 
| 
			public  
			array
		 | $recipients | 
			#
			 (read-only) an array of all recipients of the email. | 
| 
			public  
			string
		 | $signature | 
			#
			 Signature of the user sending the email, if any | 
| 
			public  
			 | $targetModel | 
			#
			 The model associated with this email, i.e. Contacts or Quote | 
| 
			public  
			 | $templateModel | 
			#
			 (read-only) template, if any, to use. | 
| 
			public  
			string
		 | $trackingImage | 
			#
			 (read-only) Markup for the tracking image to be placed in the email | 
| 
			public  
			string
		 | $uniqueId | 
			#
			 A unique ID used for the tracking record and tracking image URL | 
| 
$attributes, 
$errors, 
$iterator, 
$safeAttributeNames, 
$scenario, 
$validatorList, 
$validators
		 |