Documentation

IMP_Factory_Spam extends Horde_Core_Factory_Base
in package

A Horde_Injector based IMP_Spam factory.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Properties

$_instances  : array<string|int, mixed>
Instances.

Methods

create()  : IMP_Spam
Return a IMP_Spam instance.
_expand()  : string
Expand placeholders in 'email' and 'program' options.

Properties

$_instances

Instances.

private array<string|int, mixed> $_instances = array()

Methods

create()

Return a IMP_Spam instance.

public create(int $action) : IMP_Spam
Parameters
$action : int

Either IMP_Spam::SPAM or IMP_Spam::INNOCENT.

Tags
throws
IMP_Exception
Return values
IMP_Spam

The spam instance.

_expand()

Expand placeholders in 'email' and 'program' options.

private _expand(string $str[, bool $escape = false ]) : string
Parameters
$str : string

The option.

$escape : bool = false

Shell escape the replacements?

Return values
string

The expanded option.


        
On this page

Search results