Overview

Namespaces

  • Avisota
    • Event
    • Message
    • Queue
    • Recipient
    • RecipientSource
    • Renderer
    • Templating
    • Test
      • Database
      • Imap
      • Message
      • Queue
      • Renderer
      • Transport
    • Transport

Classes

  • CSVFile
  • Dummy

Interfaces

  • RecipientSourceInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class CSVFile

A recipient source that read the recipients from a csv file.

Avisota\RecipientSource\CSVFile implements Avisota\RecipientSource\RecipientSourceInterface
Namespace: Avisota\RecipientSource
Package: avisota-core
Located at src/Avisota/RecipientSource/CSVFile.php
Methods summary
public
# __construct( string $file, array $columnAssignment, mixed $delimiter = ',', mixed $enclosure = '"', mixed $escape = '\\' )

Parameters

$file
string
$fileData
$columnAssignment
$delimiter
$enclosure
$escape
public integer
# countRecipients( )

Count the recipients.

Count the recipients.

Returns

integer

Implementation of

Avisota\RecipientSource\RecipientSourceInterface::countRecipients()
public RecipientInterface[]
# getRecipients( integer $limit = null, integer $offset = null )

Get all recipients.

Get all recipients.

Parameters

$limit
integer
$limit Limit result to given count.
$offset
integer
$offset Skip certain count of recipients.

Returns

RecipientInterface[]

Implementation of

Avisota\RecipientSource\RecipientSourceInterface::getRecipients()
Properties summary
private mixed $file
#
private mixed $columnAssignment
#
private mixed $delimiter
#
private mixed $enclosure
#
private mixed $escape
#
avisota/core API documentation generated by ApiGen 2.8.0