TwistPHP Documentation

SourceParser

File path: dist/twist/Core/Models/Email/SourceParser.model.php
Namespace: Twist\Core\Models\Email
Extends:

Type: Model

SourceParser — The ability to parse raw email source and turn it into usable data using a single method call.

Example Usage

<?php
//Set the variables for the example
$strData 'foo';
$strBoundary '';

//Call the function splitBoundaries with the example vars
$resSourceParser = new \Twist\Core\Models\Email\SourceParser();
$resSourceParser -> splitBoundaries($strData$strBoundary);

Method List

Method Access Returns
processEmailSourcepublicvoid
parseBoundariesprotectedvoid
splitBoundariesprotectedvoid
decodeQuotedPrintableprotectedvoid
stripEmailHeadersprotectedvoid