ClearFoundation

Developer API Reference CyrusAdmin

ClearOS API

Class CyrusAdmin

Description

Cyrus Administrative Interface.

A limited API to the Cyrus Imap server.

Located in /api/CyrusAdmin.class.php (line 61)

Engine
   |
   --CyrusAdmin
Class Constant Summary
 FILE_KOLAB_CONFIG = '/etc/kolab/kolab.conf'
Variable Summary
mixed $config
mixed $host
mixed $Imap
mixed $is_loaded
mixed $port
Method Summary
CyrusAdmin __construct ([string $host = '127.0.0.1'], [integer $port = '143'])
void __destruct ()
boolen CreateFolder (string $user, string $foldername)
boolean FolderExist (string $user, string $foldername)
array GetFolderList ([ $folderMask = null], string $prepend)
array GetUserList ()
void Login ()
Variables
mixed $config = null (line 69)
  • access: protected
mixed $host = '127.0.0.1' (line 66)
  • access: protected
mixed $Imap = null (line 70)
  • access: protected
mixed $is_loaded = false (line 68)
  • access: protected
mixed $port = '143' (line 67)
  • access: protected

Inherited Variables

Inherited from Engine

Engine::$errors
Methods
Constructor __construct (line 85)

Cyrus Admin constructor.

  • access: public
CyrusAdmin __construct ([string $host = '127.0.0.1'], [integer $port = '143'])
  • string $host: string hostname to use. Defaults to 127.0.0.1
  • integer $port: string Numeric port to user. Defaults to 2000.

Redefinition of:
Engine::__construct()
Engine constructor.
Destructor __destruct (line 261)
void __destruct ()

Redefinition of:
Engine::__destruct()
CreateFolder (line 202)

Creates a mailbox.

  • return: True on success
boolen CreateFolder (string $user, string $foldername)
  • string $user: Name of the user to modify
  • string $foldername: Name of folder to create
FolderExist (line 177)

check if the mailbox name exists

  • return: true on Success/false on Failure
boolean FolderExist (string $user, string $foldername)
  • string $user: the user to check
  • string $foldername: the foldername to check
GetFolderList (line 133)

Returns a list of folders for a particular user.

  • return: Array of folders matched
  • access: public
array GetFolderList ([ $folderMask = null], string $prepend)
  • string $prepend: Optional string to prepend
  • $folderMask
GetUserList (line 154)

Returns a list of users.

  • return: Array of users found
  • access: public
array GetUserList ()
Login (line 115)

Connects and logs into the server.

  • access: public
void Login ()

Inherited Methods

Inherited From Engine

Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
Class Constants
FILE_KOLAB_CONFIG = '/etc/kolab/kolab.conf' (line 72)

Inherited Constants

Inherited from Engine

Engine::COMMAND_API

Documentation generated on Fri, 28 Aug 2009 20:32:02 -0400 by phpDocumentor 1.3.2