Lines Matching refs:rev

401      * @param int $rev Revision timestamp to access an older revision
406 public function getPage($page, $rev = 0) argument
408 $page = $this->checkPage($page, $rev, false);
410 $text = rawWiki($page, $rev);
411 if (!$text && !$rev) {
430 * @param int $rev revision timestamp
435 public function getPageHTML($page, $rev = 0) argument
437 $page = $this->checkPage($page, $rev);
439 return (string)p_wiki_xhtml($page, $rev, false);
450 * @param int $rev revision timestamp
457 public function getPageInfo($page, $rev = 0, $author = false, $hash = false) argument
459 $page = $this->checkPage($page, $rev);
461 $result = new Page($page, $rev);
494 foreach ($revisions as $rev) {
495 if (!page_exists($page, $rev)) continue; // skip non-existing revisions
496 $info = $pagelog->getRevisionInfo($rev);
500 $rev,
831 * @param int $rev revision timestamp
838 public function getMedia($media, $rev = 0) argument
846 if ($this->isCurrentMediaRev($media, $rev)) {
847 $rev = 0;
850 $file = mediaFN($media, $rev);
867 * @param int $rev revision timestamp
875 public function getMediaInfo($media, $rev = 0, $author = false, $hash = false) argument
883 if ($this->isCurrentMediaRev($media, $rev)) {
884 $rev = 0;
887 if (!media_exists($media, $rev)) {
891 $info = new Media($media, $rev);
960 foreach ($revisions as $rev) {
962 $check = $this->isCurrentMediaRev($media, $rev) ? '' : $rev;
965 $info = $medialog->getRevisionInfo($rev);
969 $rev,
1069 * @param int $rev
1072 protected function isCurrentMediaRev(string $id, int $rev) argument
1075 if ($current === $rev) return true;
1093 * @param int $rev page revision
1100 private function checkPage($id, $rev = 0, $existCheck = true, $minAccess = AUTH_READ) argument
1107 if ($existCheck && !page_exists($id, $rev)) {