CLI API Documentation

Axigen's PHP Command Line Interface API reference guide

List of all members.

Public Member Functions

  __construct ($webmailProxyObj, $parent)
  __get ($name)
  __set ($name, $value)
  addHostNameResolver ($host, $domain)
  addListener ($address)
  addUrlRedirect ($address, $host, $port)
  configAccessControl ()
  getAllowKeepAlive ()
  getAllowLargeIncomingData ()
  getAuthenticateOnProxy ()
  getConnectionDataLocalInterface ()
  getConnectionDataMaxConnections ()
  getConnectionDataSslEnable ()
  getConnectionDataTimeout ()
  getEnableMobileWebmail ()
  getHttpBodyMaxSize ()
  getHttpHeadersMaxSize ()
  getLogHost ()
  getLogLevel ()
  getLogType ()
  getMappingDataMappingHost ()
  getMappingDataMappingPort ()
  getMappingDataUsermapName ()
  getMaxAuthErrors ()
  getMaxConnThreads ()
  getMaxErrors ()
  getMinConnThreads ()
  getPath ()
  getRequestsQueueMaxSize ()
  getSessionObj ()
  getUploadMaxSize ()
  getUserdbConnectorName ()
  getUserdbConnectorType ()
  getWebmailProxyObj ()
  listHostNameResolvers ()
  listListeners ()
  listUrlRedirects ()
  removeHostNameResolver ($hostname)
  removeListener ($address)
  removeUrlRedirect ($address)
  reset ()
  save ()
  setAllowKeepAlive ($value)
  setAllowLargeIncomingData ($value)
  setAuthenticateOnProxy ($value)
  setConnectionDataLocalInterface ($value)
  setConnectionDataMaxConnections ($value)
  setConnectionDataSslEnable ($value)
  setConnectionDataTimeout ($value)
  setEnableMobileWebmail ($value)
  setHttpBodyMaxSize ($value)
  setHttpHeadersMaxSize ($value)
  setLogHost ($value)
  setLogLevel ($value)
  setLogType ($value)
  setMappingDataMappingHost ($value)
  setMappingDataMappingPort ($value)
  setMappingDataUsermapName ($value)
  setMaxAuthErrors ($value)
  setMaxConnThreads ($value)
  setMaxErrors ($value)
  setMinConnThreads ($value)
  setPath ($value)
  setRequestsQueueMaxSize ($value)
  setUploadMaxSize ($value)
  setUserdbConnectorName ($value)
  setUserdbConnectorType ($value)
  start ()
  stop ()
  updateHostNameResolver ($hostname, $newDomain)
  updateListener ($address)
  updateUrlRedirect ($address, $newHost, $newPort)

Member Function Documentation

WebmailProxy::__get ( name  ) 

Get member.

member

description

maxConnThreads

the maximum number of threads involved in I/O for the Webmail service

minConnThreads

the minimum number of threads involved in I/O for the Webmail service

maxErrors

the maximum number of protocol errors after which the connection is terminated

maxAuthErrors

the maximum number of authentication errors after which the connection is terminated

authenticateOnProxy

if the authentication should be also done on proxy

path

the WebmailProxy's directory path

allowKeepAlive

permanent connections

httpHeadersMaxSize

the maximum allowed size for received HTTP headers

httpBodyMaxSize

the maximum allowed size for incoming HTTP body

uploadMaxSize

the maximum allowed size for incoming upload data

requestsQueueMaxSize

the maximum size of the request queue

allowLargeIncomingData

data receiving to be allowed after the session times out

enableMobileWebmail

enabled/disabled the Mobile Webmail interface

mappingDataUsermapName

the mapping usermap name for the proxy

mappingDataMappingHost

the mapping data host for the proxy

mappingDataMappingPort

the mapping data port for the proxy

connectionDataTimeout

the timeout for the read/write operation

connectionDataMaxConnections

the maximum number of simultaneous connections

connectionDataSslEnable

if the connection should be SSL

connectionDataLocalInterface

the address of the interface used to make the connections

userdbConnectorType

the userdb connector type

userdbConnectorName

the userdb connector name

logLevel

the log level for the Webmail service

logHost

the address of the host that offers log services

logType

the log type for the Webmail service

userInterfaceType

ajax inteface type [<ajaxDefault | ajaxOnly | standardDefault | standardOnly>]

httpBindBackend

the http url of the IM backend

WebmailProxy::__set ( name,
value  
)

Set member.

member

description

maxConnThreads

the maximum number of threads involved in I/O for the Webmail service

minConnThreads

the minimum number of threads involved in I/O for the Webmail service

maxErrors

the maximum number of protocol errors after which the connection is terminated

maxAuthErrors

the maximum number of authentication errors after which the connection is terminated

authenticateOnProxy

if the authentication should be also done on proxy

path

the WebmailProxy's directory path

allowKeepAlive

permanent connections

httpHeadersMaxSize

the maximum allowed size for received HTTP headers

httpBodyMaxSize

the maximum allowed size for incoming HTTP body

uploadMaxSize

the maximum allowed size for incoming upload data

requestsQueueMaxSize

the maximum size of the request queue

allowLargeIncomingData

data receiving to be allowed after the session times out

enableMobileWebmail

enabled/disabled the Mobile Webmail interface

mappingDataUsermapName

the mapping usermap name for the proxy

mappingDataMappingHost

the mapping data host for the proxy

mappingDataMappingPort

the mapping data port for the proxy

connectionDataTimeout

the timeout for the read/write operation

connectionDataMaxConnections

the maximum number of simultaneous connections

connectionDataSslEnable

if the connection should be SSL

connectionDataLocalInterface

the address of the interface used to make the connections

userdbConnectorType

the userdb connector type

userdbConnectorName

the userdb connector name

logLevel

the log level for the Webmail service

logHost

the address of the host that offers log services

logType

the log type for the Webmail service

userInterfaceType

ajax inteface type [<ajaxDefault | ajaxOnly | standardDefault | standardOnly>]

httpBindBackend

the http url of the IM backend

WebmailProxy::addHostNameResolver ( host,
domain  
)

This function adds a hostname resolver. This maps a hostname to a domain

Parameters:
$host  string hostname
$domain  string domain name
Returns:
bool
WebmailProxy::addListener ( address  ) 

This function adds a listener to this service

Returns:
bool
Parameters:
$address  string the listener address (ex: 127.0.0.1:25)
WebmailProxy::addUrlRedirect ( address,
host,
port  
)

This function adds a URL redirect. This can be used to redirect request for a specific host to another address.

Parameters:
$address  string the address ex. 127.0.0.1:8000
$host  string the hostname
$port  int the port number
Returns:
bool
WebmailProxy::configAccessControl (  ) 

This function returns an access control object for this service

Returns:
object AccessControl
WebmailProxy::listHostNameResolvers (  ) 

This method lists the hostname resolvers

Returns:
array
WebmailProxy::listListeners (  ) 

This function lists the listeners for this service

Returns:
array
WebmailProxy::listUrlRedirects (  ) 

This method lists the URL redirects

Returns:
array
WebmailProxy::removeHostNameResolver ( hostname  ) 

This function removes the hostname resolver that matches the given host

Parameters:
$hostname  string the hostname
Returns:
bool
WebmailProxy::removeListener ( address  ) 

This function removes a listener from this service

Returns:
bool
Parameters:
$address  string
WebmailProxy::removeUrlRedirect ( address  ) 

This function removes an URL redirect with the specified address

Parameters:
$address  string the address of the URL redirect
Returns:
bool
WebmailProxy::reset (  ) 

This function resets the changes made but not yet saved

Returns:
bool
WebmailProxy::start (  ) 

This function starts the Webmail Proxy service

Returns:
bool
WebmailProxy::stop (  ) 

This function stops the Webmail Proxy service

Returns:
bool
WebmailProxy::updateHostNameResolver ( hostname,
newDomain  
)

This function changes the hostname resolver that matches the given host

Parameters:
$hostname  string the hostname
$newDomain  string the new domain value
Returns:
bool
WebmailProxy::updateListener ( address  ) 

This function updates a listener of this service

Returns:
objectListener
Parameters:
$address  string
WebmailProxy::updateUrlRedirect ( address,
newHost,
newPort  
)

This function changes an existing URL redirect, changing its host and port

Parameters:
$address  string the address of the url redirect
$newHost  string the new host value
$newPort  int the new port value
Returns:
bool