Overview

Packages

  • Horde
    • Icalendar
      • UnitTests
  • Ingo
    • UnitTests
  • None

Classes

  • Horde_Core_Ui_VarRenderer_Ingo
  • Ingo
  • Ingo_Api
  • Ingo_Exception
  • Ingo_Exception_Pear
  • Ingo_LoginTasks_SystemTask_Upgrade
  • Ingo_Script
  • Ingo_Script_Imap
  • Ingo_Script_Imap_Api
  • Ingo_Script_Imap_Live
  • Ingo_Script_Maildrop
  • Ingo_Script_Maildrop_Comment
  • Ingo_Script_Maildrop_Recipe
  • Ingo_Script_Maildrop_Variable
  • Ingo_Script_Procmail
  • Ingo_Script_Procmail_Comment
  • Ingo_Script_Procmail_Recipe
  • Ingo_Script_Procmail_Variable
  • Ingo_Script_Sieve
  • Ingo_Script_Sieve_Action
  • Ingo_Script_Sieve_Action_Addflag
  • Ingo_Script_Sieve_Action_Discard
  • Ingo_Script_Sieve_Action_Fileinto
  • Ingo_Script_Sieve_Action_Flag
  • Ingo_Script_Sieve_Action_Keep
  • Ingo_Script_Sieve_Action_Notify
  • Ingo_Script_Sieve_Action_Redirect
  • Ingo_Script_Sieve_Action_Reject
  • Ingo_Script_Sieve_Action_Removeflag
  • Ingo_Script_Sieve_Action_Stop
  • Ingo_Script_Sieve_Action_Vacation
  • Ingo_Script_Sieve_Comment
  • Ingo_Script_Sieve_Else
  • Ingo_Script_Sieve_Elsif
  • Ingo_Script_Sieve_If
  • Ingo_Script_Sieve_Test
  • Ingo_Script_Sieve_Test_Address
  • Ingo_Script_Sieve_Test_Allof
  • Ingo_Script_Sieve_Test_Anyof
  • Ingo_Script_Sieve_Test_Body
  • Ingo_Script_Sieve_Test_Exists
  • Ingo_Script_Sieve_Test_False
  • Ingo_Script_Sieve_Test_Header
  • Ingo_Script_Sieve_Test_Not
  • Ingo_Script_Sieve_Test_Relational
  • Ingo_Script_Sieve_Test_Size
  • Ingo_Script_Sieve_Test_True
  • Ingo_Storage
  • Ingo_Storage_Blacklist
  • Ingo_Storage_Filters
  • Ingo_Storage_Filters_Sql
  • Ingo_Storage_Forward
  • Ingo_Storage_Mock
  • Ingo_Storage_Prefs
  • Ingo_Storage_Rule
  • Ingo_Storage_Spam
  • Ingo_Storage_Sql
  • Ingo_Storage_Vacation
  • Ingo_Storage_VacationTest
  • Ingo_Storage_Whitelist
  • Ingo_Test
  • Ingo_Transport
  • Ingo_Transport_Ldap
  • Ingo_Transport_Null
  • Ingo_Transport_Sivtest
  • Ingo_Transport_Timsieved
  • Ingo_Transport_Vfs
  • Overview
  • Package
  • Class
  • Tree

Class Ingo

Ingo base class.

See the enclosed file LICENSE for license information (ASL). If you did not receive this file, see http://www.horde.org/licenses/apache.

Package: Ingo
Author: Mike Cochrane mike@graftonhall.co.nz
Author: Jan Schneider jan@horde.org
Located at Ingo.php
Methods summary
public static
# createSession( )

Create an ingo session.

Create an ingo session.

Creates the $ingo session variable with the following entries:

'backend' (array) - The backend configuration to use.
'change' (integer) - The timestamp of the last time the rules were
                     altered.
'storage' (array) - Used by Ingo_Storage:: for caching data.
'script_categories' (array) - The list of available categories for the
                              Ingo_Script driver in use.
'script_generate' (boolean) - Is the Ingo_Script::generate() call
                              available?

Throws

Ingo_Exception
public static string
# flistSelect( string $value = null, string $form = null, string $tagname = 'actionvalue' )

Generates a folder widget. If an application is available that provides a folderlist method then a <select> input is created. Otherwise a simple text field is returned.

Generates a folder widget. If an application is available that provides a folderlist method then a <select> input is created. Otherwise a simple text field is returned.

Parameters

$value
The current value for the field.
$form
The form name for the newFolderName() call.
$tagname
The label for the select tag.

Returns

string
The HTML to render the field.
public static string
# validateFolder( Horde_Variables $vars, string $name )

Validates an IMAP mailbox provided by user input.

Validates an IMAP mailbox provided by user input.

Parameters

$vars
An variables object.
$name
The form name of the folder input.

Returns

string
The IMAP mailbox name.

Throws

Horde_Exception
public static string
# getUser( boolean $full = true )

Returns the user whose rules are currently being edited.

Returns the user whose rules are currently being edited.

Parameters

$full
Always return the full user name with realm?

Returns

string
The current user.
public static string
# getDomain( )

Returns the domain name, if any of the user whose rules are currently being edited.

Returns the domain name, if any of the user whose rules are currently being edited.

Returns

string
The current user's domain name.
public static boolean
# activateScript( string $script, boolean $deactivate = false, array $additional = array() )

Connects to the backend and uploads the script and sets it active.

Connects to the backend and uploads the script and sets it active.

Parameters

$script
The script to set active.
$deactivate
<p>If true, notification will identify the script as deactivated instead of activated.</p>
$additional
Any additional scripts that need to uploaded.

Returns

boolean
True on success, false on failure.
public static string
# getScript( )

Connects to the backend and returns the currently active script.

Connects to the backend and returns the currently active script.

Returns

string
The currently active script.
public static
# updateScript( )

Does all the work in updating the script on the server.

Does all the work in updating the script on the server.

public static array
# getBackend( )

Determine the backend to use.

Determine the backend to use.

This decision is based on the global 'SERVER_NAME' and 'HTTP_HOST' server variables and the contents of the 'preferred' either field in the backend's definition. The 'preferred' field may take a single value or an array of multiple values.

Returns

array
The backend entry.

Throws

Ingo_Exception
public static Ingo_Script
# loadIngoScript( )

Loads a Ingo_Script:: backend and checks for errors.

Loads a Ingo_Script:: backend and checks for errors.

Returns

Ingo_Script
Script object on success.

Throws

Ingo_Exception
public static Ingo_Transport
# getTransport( )

Returns an instance of the configured transport driver.

Returns an instance of the configured transport driver.

Returns

Ingo_Transport
The configured driver.

Throws

Ingo_Exception
public static array
# listRulesets( boolean $owneronly = false, integer $permission = Horde_Perms::SHOW )

Returns all rulesets a user has access to, according to several parameters/permission levels.

Returns all rulesets a user has access to, according to several parameters/permission levels.

Parameters

$owneronly
<p>Only return rulesets that this user owns? Defaults to false.</p>
$permission
The permission to filter rulesets by.

Returns

array
The ruleset list.
public static
# hasSharePermission( mixed $mask = null )

TODO

TODO

public static boolean
# filterEmptyAddress( string $address )

Returns whether an address is empty or only contains a "@". Helper function for array_filter().

Returns whether an address is empty or only contains a "@". Helper function for array_filter().

Parameters

$address
An email address to test.

Returns

boolean
True if the address is not empty.
public static string
# menu( )

Create ingo's menu.

Create ingo's menu.

Returns

string
The menu text.
public static
# status( )

Outputs Ingo's status/notification bar.

Outputs Ingo's status/notification bar.

Constants summary
string BLACKLIST_MARKER

String that can't be a valid folder name used to mark blacklisted email as deleted.

String that can't be a valid folder name used to mark blacklisted email as deleted.

# '++DELETE++'
string USER_HEADER

Define the key to use to indicate a user-defined header is requested.

Define the key to use to indicate a user-defined header is requested.

# '++USER_HEADER++'
API documentation generated by ApiGen