Public Member Functions | Protected Attributes

log2command Class Reference

Main log2command class. More...

List of all members.

Public Member Functions

 command_file_changed ($file)
 display_help ()
 Displays version and help.
 execute_command ($command, $parameters=null)
 Executes a command, maybe.
 log_file_changed ($file)
 The log file has changed. Read it and touch IP's.
 parse_command_line ()
 Parse the command line.
 requirements_check ()
 Check some basic requirements.

Protected Attributes

 $ready = false

Detailed Description

Main log2command class.


Member Function Documentation

command_file_changed ( file  ) 

The command file has been changed. Read it and execute commands.

Parameters:
$file Path and filename of command file.
execute_command ( command,
parameters = null 
)

Executes a command, maybe.

The command must exist in the settings file and not be empty.

Parameters:
$command Command to execute.
$parameters Optional parameters.
log_file_changed ( file  ) 

The log file has changed. Read it and touch IP's.

Parameters:
$file Log file that was changed.
requirements_check (  ) 

Check some basic requirements.

Checks for:

  • inotify

Member Data Documentation

$ready = false [protected]

Is log2command ready for normal use?


The documentation for this class was generated from the following file:
 All Classes Functions Variables