\Ingo_Transport_Timsieved

Ingo_Transport_Timsieved implements an Ingo transport driver to allow scripts to be installed and set active via a Cyrus timsieved server.

Summary

Methods
Properties
Constants
__construct()
setScriptActive()
supportShares()
quote()
getScript()
No public properties found
No constants found
_connect()
$_params
$_supportShares
$_sieve
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Congifuration parameters.

Type

array

$_supportShares

$_supportShares : boolean

Whether this driver allows managing other users' rules.

Type

boolean

$_sieve

$_sieve : \Horde\ManageSieve

The ManageSieve object.

Type

\Horde\ManageSieve

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

Configuration parameters.

setScriptActive()

setScriptActive(array  $script) 

Sets a script running on the backend.

Parameters

array $script

The filter script information. Passed elements:

  • 'name': (string) the script name.
  • 'recipes': (array) the filter recipe objects.
  • 'script': (string) the filter script.

Throws

\Ingo_Exception

supportShares()

supportShares() : boolean

Returns whether the driver supports managing other users' rules.

Returns

boolean —

True if the driver supports shares.

quote()

quote(string  $string) : string

Quotes user input if supported by the transport driver.

Parameters

string $string

A string to quote.

Returns

string —

The quoted string.

getScript()

getScript() : string

Returns the content of the currently active script.

Throws

\Ingo_Exception
\Horde_Exception_NotFound

Returns

string —

The complete ruleset of the specified user.

_connect()

_connect() 

Connects to the sieve server.

Throws

\Ingo_Exception