public
|
#
__construct( CI_DB_query_builder $db )
Class Constructor
Parameters
|
public
Email
|
#
createEmail( IdType $id = null, EmailSubjectInterface $subject = null, EmailContentInterface $contentHtml = null, EmailContentInterface $contentPlain = null, boolean $p_isPending = true, ContactCollectionInterface $contacts = null, AttachmentCollectionInterface $attachments = null )
Creates an email object
Parameters
- $id
- (optional) E-Mail ID.
- $subject
- (optional) E-Mail subject.
- $contentHtml
- $contentPlain (optional) E-Mail plain content.
- $contentPlain
- $contentHtml (optional) E-Mail HTML content.
- $p_isPending
- (optional) E-Mail is pending?
- $contacts
- (optional) E-Mail contacts.
- $attachments
- (optional) E-Mail attachments.
Returns
Throws
InvalidArgumentException If '$p_isPending' is not a bool, or if any other argument is not valid.
UnexpectedValueException If the contact type was not found
Implementation of
|
public
EmailContact
|
#
createContact( EmailAddressInterface $emailAddress, ContactTypeInterface $contactType, ContactNameInterface $contactName = null )
Creates an email contact object
Creates an email contact object
Parameters
- $emailAddress
- Email address of the contact.
- $contactType
- Contact type (see ContactType class definition).
- $contactName
- (optional) Contact display name.
Returns
Implementation of
|
public
EmailAttachment
|
|
public
MailerAdapter
|
#
createMailerAdapter( )
Creates a mailer adapter object
Creates a mailer adapter object
Returns
Implementation of
|
public
TrueBV\Punycode
|
#
createPunycodeEncoder( )
Creates a PHP Punycode encoder instance.
Creates a PHP Punycode encoder instance.
Returns
TrueBV\Punycode
Link
|
public
PHPMailer
|
#
createMailer( string $protocol = null )
Creates a PHP mailer object.
Creates a PHP mailer object.
Parameters
- $protocol
(Optional) Provide 'smtp', 'sendmail' or 'mail' if you want to override the
EMAIL_TRANSPORT constant.
Returns
PHPMailer The created PHP mailer.
Implementation of
|
public
EmailService
|
#
createService( )
Creates an email service object
Creates an email service object
Returns
Implementation of
|
public
EmailRepository
|
#
createRepository( )
Creates an email repository object
Creates an email repository object
Returns
Implementation of
|
public
EmailWriter
|
#
createWriter( )
Creates an email writer object
Creates an email writer object
Returns
Implementation of
|
public
EmailReader
|
#
createReader( )
Create EmailReader Object
Create EmailReader Object
Returns
Implementation of
|
public
EmailDeleter
|
#
createDeleter( )
Creates email deleter object
Creates email deleter object
Returns
Implementation of
|
public
AttachmentsHandler
|
#
createAttachmentsHandler( string $p_uploadsDirPath = null )
Creates an attachments handler object
Creates an attachments handler object
Parameters
- $p_uploadsDirPath
(optional) You can specify a custom uploads directory path if you do not want
the default "uploads" directory. The path must contain a "tmp" and an
"attachments" directory otherwise the AttachmentsHandler class will not work
properly.
Returns
Implementation of
|
protected
CI_DB_query_builder
|
#
_getDbConnection( )
Returns a database connection.
Returns a database connection.
Returns
CI_DB_query_builder Database connection.
|