Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • EmailDeleter
  • EmailReader
  • EmailRepository
  • EmailWriter

Class EmailWriter

Class EmailWriter

Writes email records in the database (insert/update operations).

EmailWriter implements EmailWriterInterface
Package: Email\Repository
Category: System
Located at Services/System/Email/Repositories/EmailWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db )

Class Constructor

Class Constructor

Parameters

$db
Query builder.
public
# write( EmailInterface $email )

Save (insert/update) an email record.

Save (insert/update) an email record.

Parameters

$email
E-Mail.

Implementation of

EmailWriterInterface::write()
protected
# _insert( EmailInterface $email )

Inserts an email record to the database.

Inserts an email record to the database.

Parameters

$email
E-Mail.
protected
# _update( EmailInterface $email )

Updates an email record from the database.

Updates an email record from the database.

Parameters

$email
E-Mail.
protected
# _writeContactsAndAttachments( EmailInterface $email )

Writes email contacts and attachments.

Writes email contacts and attachments.

It will delete old records (if exist) and re-insert them so that the data state will represent the object state.

Parameters

$email
Contains the email information.

Properties summary

protected CI_DB_query_builder $db

Query builder.

Query builder.

#
API documentation generated by ApiGen