ClearFoundation

ClearOS API

Class Engine

Description

Base class for the API.

Located in /api/Engine.class.php (line 228)


	
			
Direct descendents
Class Description
IfaceManager Network interface manager class.
ClearDirectory ClearOS LDAP Directory class.
FileGroupManager Generic file group manager class.
UserManager User database information.
HordePrefs Horde Preferences.
WebServices Web services class.
DmCrypt DmCrypt base class.
JNetTop Wrapper for JNetTop utility.
Organization Organization class.
File File handling class.
FileTypes File extension and MIME type class.
Chap CHAP/PAP configuration class.
ProcessManager System process manager.
Shell User shell class.
Raid RAID Management Utility.
BackupRestore BackupRestore.
User User administration.
RemoteBackup RemoteBackup.
Register System registration class.
Locale System locale manager.
Time System time and configuration.
FileGroup Generic file group class
Hosts Hosts.
Process System process tool.
FileBrowser File browser.
PosixUser Posix user administration.
Netstat Netstat class.
Console Console utility class.
Folder Folder handling class.
OpenVpnHelper OpenVPN helper class.
StorageDevice Storage Device Utility.
Software Software package management tools.
Hostname Hostname class.
System Shutdown and reboot system class.
GroupManager System group manager.
Ssl SSL CA and key management class.
Mime MIME class.
Os Software package class.
Mailer E-Mailer Utility.
Aliases Mail aliases class.
Stats Stats utility class.
CyrusAdmin Cyrus Administrative Interface.
Network Network tools.
Bnetd Bnetd class.
UserImport UserImport.
Country Country class.
NetworkServices Network services class.
FirewallRule FirewallRule base class.
SoftwareUpdate Software update class.
FileScan FileScan base class.
ConnectionTracking Connection tracking class.
Mailzu Mailzu class
DaemonManager Daemon manager class.
Archive Storage Device Utility.
Group System group manager.
Report Base class for batch reports.
ShellExec Wrapper for running shell commands.
Class Constant Summary
 COMMAND_API = "/usr/sbin/api"
Variable Summary
array $errors
Method Summary
static void Log (int $code, string $message, string $tag, int $line)
void __construct ()
void __destruct ()
void AddValidationError (string $message, string $tag, integer $line)
array CopyValidationErrors ([boolean $purge = false])
array GetValidationErrors ([boolean $purge = false])
Variables
array $errors = array() (line 238)
  • var: validation error queue
  • access: protected
Methods
static method Log (line 285)

Prints a message to the log.

The following log levels are used:

  • COMMON_DEBUG - debug messages
  • COMMON_VALIDATION - validation error message
  • COMMON_INFO - informational messages (e.g. dynamic DNS updated with IP w.x.y.z)
  • COMMON_NOTICE - pedantic warnings (e.g. dynamic DNS updated with IP w.x.y.z)
  • COMMON_WARNING - normal but significant errors (e.g. dynamic DNS could not detect WAN IP)
  • COMMON_ERROR - errors that should not happen under normal circumstances
  • COMMON_FATAL - really nasty errors
static void Log (int $code, string $message, string $tag, int $line)
  • int $code: error code
  • string $message: short and informative message
  • string $tag: identifier (usually the method)
  • int $line: line number
Constructor __construct (line 252)

Engine constructor.

void __construct ()

Redefined in descendants as:
Destructor __destruct (line 380)
  • access: public
void __destruct ()

Redefined in descendants as:
AddValidationError (line 304)

Add a validation error to the queue.

  • access: protected
void AddValidationError (string $message, string $tag, integer $line)
  • string $message: error message
  • string $tag: tag (usually the method call)
  • integer $line: line number
CheckValidationErrors (line 365)

Returns true if validation errors exist.

  • return: true if validation errors exist
  • access: public
boolean CheckValidationErrors ()
CopyValidationErrors (line 346)

Returns an array of validation error objects.

  • return: validation errors
  • access: public
array CopyValidationErrors ([boolean $purge = false])
  • boolean $purge: (optional) if true, the error queue will be purged.
GetValidationErrors (line 323)

Returns an array of validation error messages.

  • return: validation errors
  • access: public
array GetValidationErrors ([boolean $purge = false])
  • boolean $purge: (optional) if true, the error queue will be purged.
Class Constants
COMMAND_API = "/usr/sbin/api" (line 240)

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