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 Dummy

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

Avisota\RecipientSource\Dummy implements Avisota\RecipientSource\RecipientSourceInterface
Namespace: Avisota\RecipientSource
Package: avisota-core
Located at src/Avisota/RecipientSource/Dummy.php
Methods summary
public
# __construct( string $minCount, mixed $maxCount )

Parameters

$minCount
string
$fileData
$maxCount
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()
public
# setMinCount( integer $minCount )

Parameters

$minCount
integer
$minCount
public integer
# getMinCount( )

Returns

integer
public
# setMaxCount( integer $maxCount )

Parameters

$maxCount
integer
$maxCount
public integer
# getMaxCount( )

Returns

integer
public
# setForenames( array $forenames )

Parameters

$forenames
array
$forenames
public array
# getForenames( )

Returns

array
public
# setSurnames( array $surnames )

Parameters

$surnames
array
$surnames
public array
# getSurnames( )

Returns

array
public
# setDomains( array $domains )

Parameters

$domains
array
$domains
public array
# getDomains( )

Returns

array
protected array
# createName( )

Create a new random name.

Create a new random name.

Returns

array
An array contains forename, surname, name and domain.
Properties summary
protected integer $minCount
#
protected integer $maxCount
#
protected array $set
#
protected array $forenames array( 'Adelheid', 'Andreas', 'Anni', 'Arite', 'Bernhilde', 'Bertin', 'Burchard', 'Burghild', 'Catarina', 'Christamaria', 'Christophorus', 'Conny', 'Dankfried', 'Dieter', 'Dietmar', 'Dorlies', 'Ekhard', 'Emmy', 'Erni', 'Ernstfried', 'Felix', 'Freiwald', 'Friedegund', 'Fraenzi', 'Gerdt', 'Gerwin', 'Gitti', 'Gundel', 'Hardi', 'Hartmann', 'Helma', 'Helwart', 'Ingolde', 'Isabelle', 'Iselore', 'Ishild', 'Jana', 'Janfried', 'Jannick', 'Josepha', 'Kai', 'Karina', 'Katharina', 'Kathrinchen', 'Landolf', 'Lenz', 'Liane', 'Loremarie', 'Marei', 'Marianne', 'Mayk', 'Melitta', 'Neidhard', 'Nick', 'Nordfried', 'Notburga', 'Ole', 'Oslinde', 'Ottobert', 'Ottokar', 'Petra', 'Philip', 'Phillippus', 'Pirmin', 'Quintus', 'Quirin', 'Reinfriede', 'Roselies', 'Rudolfina', 'Rupprecht', 'Sibyl', 'Sieglind', 'Steff', 'Sylke', 'Therese', 'Torben', 'Traudl', 'Trautlinde', 'Udo', 'Uli', 'Ulrich', 'Urban', 'Viola', 'Vitus', 'Volkwart', 'Vreni', 'Wendel', 'Wendeline', 'Wilgard', 'Wilhard', 'Xaver', 'Xaverius', 'Yannick', 'Yannik', 'Yasmin', 'Yvonne', 'Zacharias', 'Zenzi', 'Zilli', 'Zita', )
#
protected array $surnames array( 'Mueller', 'Schmidt', 'Schneider', 'Fischer', 'Weber', 'Meyer', 'Wagner', 'Becker', 'Schulz', 'Hoffmann', 'Schaefer', 'Koch', 'Bauer', 'Richter', 'Klein', 'Wolf', 'Schroeder', 'Schneider', 'Neumann', 'Schwarz', 'Zimmermann', 'Braun', 'Krueger', 'Hofmann', 'Hartmann', 'Lange', 'Schmitt', 'Werner', 'Schmitz', 'Krause', 'Meier', 'Lehmann', 'Schmid', 'Schulze', 'Maier', 'Koehler', 'Herrmann', 'Koenig', 'Walter', 'Mayer', 'Huber', 'Kaiser', 'Fuchs', 'Peters', 'Lang', 'Scholz', 'Moeller', 'Weiss', 'Jung', 'Hahn', 'Schubert', 'Vogel', 'Friedrich', 'Keller', 'Guenther', 'Frank', 'Berger', 'Winkler', 'Roth', 'Beck', 'Lorenz', 'Baumann', 'Franke', 'Albrecht', 'Schuster', 'Simon', 'Ludwig', 'Boehm', 'Winter', 'Kraus', 'Martin', 'Schumacher', 'Kraemer', 'Vogt', 'Stein', 'Jaeger', 'Otto', 'Sommer', 'Gross', 'Seidel', 'Heinrich', 'Brandt', 'Haas', 'Schreiber', 'Graf', 'Schulte', 'Dietrich', 'Ziegler', 'Kuhn', 'Kuehn', 'Pohl', 'Engel', 'Horn', 'Busch', 'Bergmann', 'Thomas', 'Voigt', 'Sauer', 'Arnold', 'Wolff', 'Pfeiffer', )
#
protected array $domains array( 'gmail.com', 'zoho.com', 'aol.com', 'shortmail.me', 'outlook.com', 'yahoo.com', 'mail.com', 'gmx.com', 'facebook.com', 'inbox.com', )
#
avisota/core API documentation generated by ApiGen 2.8.0