Net_Sieve
[ class tree: Net_Sieve ] [ index: Net_Sieve ] [ all elements ]

Class: Net_Sieve

Source Location: /Net_Sieve-1.1.1/Sieve.php

Class Overview


A class for talking to the timsieved server which comes with Cyrus IMAP. the HAVESPACE command which appears to be broken (Cyrus 2.0.16).


Author(s):

Version:

  • 0.9.1

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 74]
A class for talking to the timsieved server which comes with Cyrus IMAP. the HAVESPACE command which appears to be broken (Cyrus 2.0.16).


[ Top ]


Class Variables

$supportedAuthMethods = array('DIGEST-MD5', 'CRAM-MD5', 'PLAIN' , 'LOGIN')

[line 113]

The auth methods this class support

Type:   array


[ Top ]

$supportedSASLAuthMethods = array('DIGEST-MD5', 'CRAM-MD5')

[line 124]

The auth methods this class support

Type:   array


[ Top ]



Method Detail

Net_Sieve (Constructor)   [line 148]

Net_Sieve Net_Sieve( [string $user = null], [string $pass = null], [string $host = 'localhost'], [string $port = 2000], [string $logintype = ''], [string $euser = ''], [ $debug = false])

Constructor Sets up the object, connects to the server and logs in. stores any generated error in $this->_error, which can be retrieved using the getError() method.
  • Access: public

Parameters:

string   $user   —  Login username
string   $pass   —  Login password
string   $host   —  Hostname of server
string   $port   —  Port of server
string   $logintype   —  Type of login to perform
string   $euser   —  Effective User (if $user=admin, login as $euser)
   $debug   — 

[ Top ]

disconnect   [line 1007]

mixed disconnect( [ $sendLogoutCMD = true], string $scriptname)

Disconnect from the Sieve server
  • Return: true on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $scriptname   —  The name of the script to be set as active
   $sendLogoutCMD   — 

[ Top ]

getActive   [line 244]

mixed getActive( )

Returns the active script
  • Return: The active scriptname or PEAR_Error on failure
  • Access: public

[ Top ]

getAuthMechs   [line 1117]

mixed getAuthMechs( )

Return the list of auth methods the server supports
  • Return: array on success, PEAR_Error on failure
  • Access: public

[ Top ]

getError   [line 320]

mixed getError( )

Returns any error that may have been generated in the constructor
  • Return: False if no error, PEAR_Error otherwise
  • Access: public

[ Top ]

getExtensions   [line 1068]

mixed getExtensions( )

Return the list of extensions the server supports
  • Return: array on success, PEAR_Error on failure
  • Access: public

[ Top ]

getScript   [line 274]

mixed getScript( string $scriptname)

Retrieves a script
  • Return: The script on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $scriptname   —  The name of the script to be retrieved

[ Top ]

hasAuthMech   [line 1142]

mixed hasAuthMech( string $method)

Return true if tyhe server has that extension
  • Return: array on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $method   —  the extension to compare

[ Top ]

hasExtension   [line 1091]

mixed hasExtension( string $extension)

Return true if tyhe server has that extension
  • Return: array on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $extension   —  the extension to compare

[ Top ]

haveSpace   [line 779]

mixed haveSpace( string $scriptname, $quota)

Checks if the server has space to store the script by the server
  • Return: True on success, PEAR_Error otherwise
  • Access: public

Parameters:

string   $scriptname   —  The name of the script to mark as active
   $quota   — 

[ Top ]

installScript   [line 288]

mixed installScript( string $scriptname, string $script, [bool $makeactive = false])

Adds a script to the server
  • Return: true on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $scriptname   —  Name of the script
string   $script   —  The script
bool   $makeactive   —  Whether to make this the active script

[ Top ]

listScripts   [line 228]

mixed listScripts( )

Returns an indexed array of scripts currently on the server
  • Return: Indexed array of scriptnames or PEAR_Error on failure
  • Access: public

[ Top ]

login   [line 375]

mixed login( string $user, string $pass, [string $logintype = null], [string $euser = ''], [boolean $bypassAuth = false])

Logs into server.
  • Return: True on success, PEAR_Error otherwise
  • Access: public

Parameters:

string   $user   —  Login username
string   $pass   —  Login password
string   $logintype   —  Type of login method to use
string   $euser   —  Effective UID (perform on behalf of $euser)
boolean   $bypassAuth   —  dont perform auth

[ Top ]

removeScript   [line 308]

mixed removeScript( string $scriptname)

Removes a script from the server
  • Return: True on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $scriptname   —  Name of the script

[ Top ]

setActive   [line 262]

mixed setActive( string $scriptname)

Sets the active script
  • Return: true on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $scriptname   —  The name of the script to be set as active

[ Top ]

setDebug   [line 995]

void setDebug( [ $debug = true])

Sets the bebug state
  • Access: public

Parameters:

   $debug   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:22:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.