Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($argv=array()) | |
_copyFile ($filePath) | |
execute () | |
usage () | |
Data Fields | |
$_contextPaths | |
$_egrepPath | |
$_tmpDir | |
$_usageStatsDir | |
$_usageStatsFiles | |
Data Fields inherited from CommandLineTool | |
$argv | |
$scriptName | |
CLI tool to copy apache log files while filtering entries related only to the current instalation.
Definition at line 22 of file copyAccessLogFileTool.php.
CopyAccessLogFileTool::__construct | ( | $argv = array() | ) |
Constructor.
$argv | array command-line arguments |
Reimplemented from CommandLineTool.
Definition at line 38 of file copyAccessLogFileTool.php.
References CommandLineTool\$argv, Application\getContextDAO(), PluginRegistry\getPlugin(), Config\getVar(), AppLocale\requireComponents(), and usage().
CopyAccessLogFileTool::_copyFile | ( | $filePath | ) |
Copy the passed file, filtering entries related to this installation.
$filePath | string |
Definition at line 158 of file copyAccessLogFileTool.php.
References $_egrepPath, $_tmpDir, $_usageStatsDir, and $_usageStatsFiles.
Referenced by execute().
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 106 of file copyAccessLogFileTool.php.
References $_tmpDir, $_usageStatsDir, _copyFile(), and Config\getVar().
CopyAccessLogFileTool::usage | ( | ) |
Print command usage information.
Reimplemented from CommandLineTool.
Definition at line 97 of file copyAccessLogFileTool.php.
Referenced by __construct().
CopyAccessLogFileTool::$_contextPaths |
Definition at line 30 of file copyAccessLogFileTool.php.
CopyAccessLogFileTool::$_egrepPath |
Definition at line 32 of file copyAccessLogFileTool.php.
Referenced by _copyFile().
CopyAccessLogFileTool::$_tmpDir |
Definition at line 26 of file copyAccessLogFileTool.php.
Referenced by _copyFile(), and execute().
CopyAccessLogFileTool::$_usageStatsDir |
Definition at line 24 of file copyAccessLogFileTool.php.
Referenced by _copyFile(), and execute().
CopyAccessLogFileTool::$_usageStatsFiles |
Definition at line 28 of file copyAccessLogFileTool.php.
Referenced by _copyFile().