Mail_Queue
[ class tree: Mail_Queue ] [ index: Mail_Queue ] [ all elements ]

Class: Mail_Queue_Container_db

Source Location: /Mail_Queue-1.1.2/Queue/Container/db.php

Class Overview

Mail_Queue_Container
   |
   --Mail_Queue_Container_db

Mail_Queue_Container_db - Storage driver for fetching mail queue data from a PEAR_DB database


Author(s):

Version:

  • $Id: db.php,v 1.14 2004/07/20 10:18:55 quipo Exp $

Variables

Methods


Inherited Variables

Inherited Methods

Class: Mail_Queue_Container

Mail_Queue_Container::countSend()
Check how many times mail was sent.
Mail_Queue_Container::deleteMail()
Remove from queue mail with $id identifier.
Mail_Queue_Container::get()
Get next mail from queue. When exclude first time preload all queue
Mail_Queue_Container::getMailById()
Return mail by id $id (bypass mail_queue)
Mail_Queue_Container::setAsSent()
Set mail as already sent.
Mail_Queue_Container::setOption()
Set common option

Class Details

[line 44]
Mail_Queue_Container_db - Storage driver for fetching mail queue data from a PEAR_DB database
  • Author: Radek Maciaszek <chief@php.net>
  • Version: $Id: db.php,v 1.14 2004/07/20 10:18:55 quipo Exp $
  • Access: public


[ Top ]


Class Variables

$db =

[line 52]

Reference to the current database connection.

Type:   object PEAR_DB


[ Top ]

$mail_table =  'mail_queue'

[line 58]

Table for sql database

Type:   string


[ Top ]

$sequence =  null

[line 63]

  • Var: the name of the sequence for this table

Type:   string


[ Top ]



Method Detail

Mail_Queue_Container_db (Constructor)   [line 79]

Mail_Queue_Container_db Mail_Queue_Container_db( mixed $options)

Contructor

Mail_Queue_Container_db:: Mail_Queue_Container_db()

  • Access: public

Parameters:

mixed   $options   —  An associative array of option names and their values. See DB_common::setOption for more information about connection options.

[ Top ]

countSend   [line 234]

mixed countSend( object Mail_Queue_Body $mail)

Check how many times mail was sent.
  • Return: Integer or Mail_Queue_Error class if error.
  • Access: public

Overrides Mail_Queue_Container::countSend() (Check how many times mail was sent.)

Parameters:

object Mail_Queue_Body   $mail   — 

[ Top ]

deleteMail   [line 343]

bool deleteMail( integer $id)

Remove from queue mail with $id identifier.
  • Return: True on success else Mail_Queue_Error class
  • Access: public

Overrides Mail_Queue_Container::deleteMail() (Remove from queue mail with $id identifier.)

Parameters:

integer   $id   —  Mail ID

[ Top ]

getMailById   [line 297]

mixed getMailById( integer $id)

Return mail by id $id (bypass mail_queue)
  • Return: Mail object or false on error.
  • Access: public

Overrides Mail_Queue_Container::getMailById() (Return mail by id $id (bypass mail_queue))

Parameters:

integer   $id   —  Mail ID

[ Top ]

put   [line 191]

mixed put( string $time_to_send, integer $id_user, string $ip, $sender, $recipient, $headers, string $body, [bool $delete_after_send = true], string $from, string $to, string $hdrs)

Put new mail in queue and save in database.

Mail_Queue_Container::put()

  • Return: ID of the record where this mail has been put or Mail_Queue_Error on error
  • Access: public

Parameters:

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 db after send
   $sender   — 
   $recipient   — 
   $headers   — 

[ Top ]

setAsSent   [line 266]

bool setAsSent( object Mail_Queue_Body $mail)

Set mail as already sent.
  • Access: public

Overrides Mail_Queue_Container::setAsSent() (Set mail as already sent.)

Parameters:

object Mail_Queue_Body   $mail   —  object

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:54:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.