Lines Matching defs:info

78         foreach ($revisions as $info) {
79 $rev = $info['date'];
80 $class = ($info['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT) ? 'minor' : '';
84 if (isset($info['current'])) {
93 $objRevInfo = $this->getObjRevInfo($info);
100 $objRevInfo->editor(), // editor info
101 html_sizechange($info['sizechange']), // size change indicator
149 foreach ($revisions as $info) {
150 $rev = $info['date'];
151 $class = ($info['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT) ? 'minor' : '';
162 $objRevInfo = $this->getObjRevInfo($info);
168 $objRevInfo->editor(), // editor info
268 // append each revison info array to the revisions
319 * @param array $info Revision info structure of a page or media file
322 protected function getObjRevInfo(array $info)
324 return new class ($info) // anonymous class (objRevInfo)
326 protected $info;
328 public function __construct(array $info)
330 if (!isset($info['current'])) {
331 $info['current'] = false;
333 $this->info = $info;
340 return ($this->info['current']) ? '('.$lang['current'].')' : '';
346 return '<span class="date">'. dformat($this->info['date']) .'</span>';
352 return '<span class="sum">'.' – '. hsc($this->info['sum']).'</span>';
361 if (!$this->info['user'] && !$this->info['ip']) {
363 } elseif ($this->info['user']) {
364 $html.= '<bdi>'. editorinfo($this->info['user']) .'</bdi>';
365 if (auth_ismanager()) $html.= ' <bdo dir="ltr">('. $this->info['ip'] .')</bdo>';
367 $html.= '<bdo dir="ltr">'. $this->info['ip'] .'</bdo>';
377 $id = $this->info['id'];
378 $rev = $this->info['date'];
380 if (isset($this->info['media'])) {
382 if (isset($this->info['current'])) {
396 if ($this->info['current'] || page_exists($id, $rev)) {
410 $id = $this->info['id'];
411 $rev = $this->info['date'];
413 if (isset($this->info['media'])) {
415 if (isset($this->info['current']) || !file_exists(mediaFN($id, $rev))) {
427 if ($this->info['current'] || !page_exists($id, $rev)) {
444 $value = filesize_h(abs($this->info['sizechange']));
445 if ($this->info['sizechange'] > 0) {
448 } elseif ($this->info['sizechange'] < 0) {