Lines Matching refs:info
24 if ($this->info['perm'] < AUTH_DELETE) {
28 $res = media_delete($this->info['id'], null);
49 if (@file_exists($this->info['path'])) {
55 if ($this->info['perm'] < $perm_needed) {
59 $overwrite = file_exists($this->info['path']);
60 $filesize_old = $overwrite ? filesize($this->info['path']) : 0;
61 $timestamp_old = @filemtime($this->info['path']);
76 if (!preg_match('/\.(' . $regex . ')$/i', $this->info['path'])) {
80 io_createNamespace($this->info['id'], 'media');
82 if (!Utils::streamWriter($stream, $this->info['path'])) {
87 io_saveFile($this->info['metafile'], serialize([
88 'filename' => $this->info['filename'],
91 $timestamp_new = @filemtime($this->info['path']);
92 $filesize_new = filesize($this->info['path']);
95 …if (!file_exists(mediaFN($this->info['id'], $timestamp_old)) && file_exists($this->info['path'])) {
97 media_saveOldRevision($this->info['id']);
100 …media_notify($this->info['id'], $this->info['path'], $this->getContentType(), $timestamp_old, $tim…
104 …addMediaLogEntry($timestamp_new, $this->info['id'], DOKU_CHANGE_TYPE_EDIT, '', '', null, $sizechan…
106 …addMediaLogEntry($timestamp_new, $this->info['id'], DOKU_CHANGE_TYPE_CREATE, $lang['created'], '',…