Lines Matching defs:info
15 * @return array added log line as revision info
17 abstract public function addLogEntry(array $info, $timestamp = null);
29 $info = sexplode("\t", rtrim($line, "\n"), 8);
30 if ($info[3]) { // we need at least the page id to consider it a valid line
32 'date' => (int)$info[0], // unix timestamp
33 'ip' => $info[1], // IP address (127.0.0.1)
34 'type' => $info[2], // log line type
35 'id' => $info[3], // page id
36 'user' => $info[4], // user name
37 'sum' => $info[5], // edit summary (or action reason)
38 'extra' => $info[6], // extra data (varies by line type)
39 'sizechange' => ($info[7] != '') ? (int)$info[7] : null, // size difference in bytes
49 * @param array $info Revision info structure
53 public static function buildLogLine(array &$info, $timestamp = null)
57 'date' => $timestamp ?? $info['date'],
58 'ip' => $info['ip'],
59 'type' => str_replace($strip, '', $info['type']),
60 'id' => $info['id'],
61 'user' => $info['user'],
62 'sum' => PhpString::substr(str_replace($strip, '', $info['sum'] ?? ''), 0, 255),
63 'extra' => str_replace($strip, '', $info['extra']),
64 'sizechange' => $info['sizechange']
66 $info = $entry;
154 $info = $this->parseLogLine($tmp);
155 $finger_rev = $info['date'];