Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
CopyAccessLogFileTool Class Reference
Inheritance diagram for CopyAccessLogFileTool:

Public Member Functions

 _copyFile ($filePath)
 CopyAccessLogFileTool ($argv=array())
 execute ()
 usage ()

Additional Inherited Members

- Public Attributes inherited from CommandLineTool

Detailed Description

CLI tool to copy apache log files while filtering entries related only to the current instalation.

Definition at line 22 of file copyAccessLogFileTool.php.

Member Function Documentation

CopyAccessLogFileTool::_copyFile (   $filePath)

Copy the passed file, filtering entries related to this installation.


Definition at line 150 of file copyAccessLogFileTool.php.

References Config\getVar().

Referenced by execute().

CopyAccessLogFileTool::CopyAccessLogFileTool (   $argv = array())


$argvarray command-line arguments

Definition at line 36 of file copyAccessLogFileTool.php.

References CommandLineTool\$argv, DAORegistry\getDAO(), PluginRegistry\getPlugin(), AppLocale\requireComponents(), and usage().

CopyAccessLogFileTool::execute ( )

Process apache log files, copying and filtering them to the usage stats stage directory. Can work with both a specific file or a directory.

Definition at line 98 of file copyAccessLogFileTool.php.

References _copyFile(), and Config\getVar().

CopyAccessLogFileTool::usage ( )

Print command usage information.

Definition at line 89 of file copyAccessLogFileTool.php.

Referenced by CopyAccessLogFileTool().

The documentation for this class was generated from the following file: