Lines Matching defs:id
42 public function find_last_approved($id) {
50 return $approve_db->getLastDbRev($id, 'approved');
53 public function use_approve_here($id) {
61 return $approve_acl->useApproveHere($id);
64 public function get_approved_revs($id) {
71 $revs = $approve_db->getPageRevisions($id);
92 $res = $approve_sqlite->query('SELECT rev FROM revision WHERE page=? AND approved IS NOT NULL', $id);
98 public function use_ireadit_here($id, $rev) {
99 if ($this->getConf('approve_integration') && $this->use_approve_here($id)) { // check if this is newest approve page
100 $last_approved_rev = $this->find_last_approved($id);
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) {
111 if (!$this->use_ireadit_here($id, $rev)) return false;
125 ORDER BY timestamp', $id, $rev);