Lines Matching refs:rev
72 $approved_revs = array_filter($revs, function ($rev) {
73 return $rev['status'] == 'approved';
98 public function use_ireadit_here($id, $rev) { argument
101 if ($rev == $last_approved_rev) { // this is last approved version
104 … } elseif ($rev == p_get_metadata($id, 'last_change date')) { // check if it is last page revision
110 public function user_can_read_page($ireadit_data, $id, $rev, $user) { argument
111 if (!$this->use_ireadit_here($id, $rev)) return false;
125 ORDER BY timestamp', $id, $rev);
170 $rev = (int) $row['rev'];
173 $pages[$page]['last_read_rev'] = $rev;
198 $rev = (int) $row['rev'];
199 if (in_array($rev, $approved_revs)) {
200 $last_read_rev = $rev;