Lines Matching defs:rev

397      * @param int $rev Revision timestamp to access an older revision
402 public function getPage($page, $rev = 0)
404 $page = $this->checkPage($page, $rev, false);
406 $text = rawWiki($page, $rev);
407 if (!$text && !$rev) {
426 * @param int $rev revision timestamp
431 public function getPageHTML($page, $rev = 0)
433 $page = $this->checkPage($page, $rev);
435 return (string)p_wiki_xhtml($page, $rev, false);
446 * @param int $rev revision timestamp
453 public function getPageInfo($page, $rev = 0, $author = false, $hash = false)
455 $page = $this->checkPage($page, $rev);
457 $result = new Page($page, $rev);
490 foreach ($revisions as $rev) {
491 if (!page_exists($page, $rev)) continue; // skip non-existing revisions
492 $info = $pagelog->getRevisionInfo($rev);
496 $rev,
824 * @param int $rev revision timestamp
831 public function getMedia($media, $rev = 0)
839 if ($this->isCurrentMediaRev($media, $rev)) {
840 $rev = 0;
843 $file = mediaFN($media, $rev);
860 * @param int $rev revision timestamp
868 public function getMediaInfo($media, $rev = 0, $author = false, $hash = false)
876 if ($this->isCurrentMediaRev($media, $rev)) {
877 $rev = 0;
880 if (!media_exists($media, $rev)) {
884 $info = new Media($media, $rev);
953 foreach ($revisions as $rev) {
955 $check = $this->isCurrentMediaRev($media, $rev) ? '' : $rev;
958 $info = $medialog->getRevisionInfo($rev);
962 $rev,
1062 * @param int $rev
1065 protected function isCurrentMediaRev(string $id, int $rev)
1068 if ($current === $rev) return true;
1086 * @param int $rev page revision
1093 private function checkPage($id, $rev = 0, $existCheck = true, $minAccess = AUTH_READ)
1100 if ($existCheck && !page_exists($id, $rev)) {