/** * Starts the log for an evaluation. The log string is assembled in self::mLog. * * @param Title $title * @param User $user * @param string $action */ static function startLog($title, $user, $action) { global $wgRequest, $haclgEvaluatorLog, $haclgCombineMode; self::$mLogEnabled = $haclgEvaluatorLog && $wgRequest->getVal('hacllog', 'false') == 'true'; if (!self::$mLogEnabled) { // Logging is disabled return; } self::$mLog = ""; self::$mLog .= "IntraACL Evaluation Log\n"; self::$mLog .= "======================\n\n"; self::$mLog .= "Title: " . (is_null($title) ? "null" : $title->getFullText()) . "\n"; self::$mLog .= "User: "******"\n"; self::$mLog .= "Action: {$action}; mode: {$haclgCombineMode}\n"; }