Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
CopyAccessLogFileTool Class Reference
Inheritance diagram for CopyAccessLogFileTool:
CommandLineTool

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from CommandLineTool
 $argv
 
 $scriptName
 

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.

Parameters
$filePathstring

Definition at line 158 of file copyAccessLogFileTool.php.

Referenced by execute().

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

Constructor.

Parameters
$argvarray command-line arguments

Definition at line 40 of file copyAccessLogFileTool.php.

References CommandLineTool\$argv, Application\getContextDAO(), PluginRegistry\getPlugin(), Config\getVar(), 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 114 of file copyAccessLogFileTool.php.

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

CopyAccessLogFileTool::usage ( )

Print command usage information.

Definition at line 105 of file copyAccessLogFileTool.php.

Referenced by CopyAccessLogFileTool().


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