|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| Mail_Queue_Container_flatfile ($options) | |
| _preload () | |
| list_files ($dir) | |
| put ($time_to_send, $id_user, $ip, $sender, $recipient, $headers, $body, $delete_after_send=true) | |
| loadFromQueue ($id) | |
| saveToQueue ($id, $contents) | |
| countSend ($mail) | |
| setAsSent ($mail) | |
| deleteMail ($id) | |
Data Fields | |
| $dir | |
Definition at line 29 of file flatfile.php.
| _preload | ( | ) |
Preload mail to queue.
Definition at line 67 of file flatfile.php.
| countSend | ( | ) |
Check how many times mail was sent.
| object | Mail_Queue_Body |
Definition at line 230 of file flatfile.php.
| deleteMail | ( | $id | ) |
Remove from queue mail with $id identifier.
| integer | $id | Mail ID |
public
Definition at line 281 of file flatfile.php.
| list_files | ( | $dir | ) |
List all the filename of files in a particular directory
| string | The directory to look for files |
Definition at line 110 of file flatfile.php.
| loadFromQueue | ( | $id | ) |
Load the mail data from the file system queue
| int | MailID of the data we are trying to load |
Definition at line 198 of file flatfile.php.
| Mail_Queue_Container_flatfile | ( | $options | ) |
Contructor
Mail_Queue_Container_flatfile:: Mail_Queue_Container_flatfile()
| mixed | $options | An associative array of option names and their values. For now, just 'dir'. |
public
Definition at line 49 of file flatfile.php.
| put | ( | $time_to_send, | |
| $id_user, | |||
| $ip, | |||
| $sender, | |||
| $recipient, | |||
| $headers, | |||
| $body, | |||
$delete_after_send = true |
|||
| ) |
Put new mail in queue and save in database.
Mail_Queue_Container::put()
| string | $time_to_send | When mail have to be send |
| integer | $id_user | Sender id |
| string | $ip | Sender ip |
| string | $from | Sender e-mail |
| string | $to | Reciepient e-mail |
| string | $hdrs | Mail headers (in RFC) |
| string | $body | Mail body (in RFC) |
| bool | $delete_after_send | Delete or not mail from filesystem after send |
Definition at line 148 of file flatfile.php.
| saveToQueue | ( | $id, | |
| $contents | |||
| ) |
Save the mail data to a single file so it can be included later.
| int | MailID of the data we are trying to load |
| array | Array of data to save |
Definition at line 214 of file flatfile.php.
| setAsSent | ( | ) |
Set mail as already sent.
| object | Mail_Queue_Body object |
Definition at line 255 of file flatfile.php.