Lines Matching refs:id

21      * @param string $id
25 function in_namespace($namespace_list, $id) { argument
31 $id = trim($id, ':');
32 $id = explode(':', $id);
43 if($namespace[$current_ns_depth] != $id[$current_ns_depth]) {
105 function getRevision($id = null) { argument
110 $meta = $this->getMeta($id);
117 function getApprovals($id = null) { argument
118 $meta = $this->getMeta($id);
129 function getMeta($id = null) { argument
133 if ($id === null) $id = $ID;
135 if($ID === $id && $INFO['meta']) {
138 $meta = p_get_metadata($id);
141 $this->checkApprovalFormat($meta, $id);
146 function checkApprovalFormat($meta, $id) { argument
172 p_set_metadata($id, array('approval' => $approvals), true, true);
173 p_set_metadata($id, array('approval_version' => 2), true, true);
189 function getSortedApprovedRevisions($id = null) { argument
190 if ($id === null) {
192 $id = $ID;
196 if (!isset($sortedApprovedRevisions[$id])) {
197 $approvals = $this->getApprovals($id);
199 $sortedApprovedRevisions[$id] = $approvals;
202 return $sortedApprovedRevisions[$id];
205 function isRevisionApproved($revision, $id = null) { argument
206 $approvals = $this->getApprovals($id);
213 function isCurrentRevisionApproved($id = null) { argument
214 return $this->isRevisionApproved($this->getRevision($id), $id);
217 function getLatestApprovedRevision($id = null) { argument
218 $approvals = $this->getSortedApprovedRevisions($id);
220 if ($this->isRevisionApproved($revision, $id)) {
288 function isHidden($id = null) { argument
294 if ($id == null) {
296 $id = $ID;
298 if (!$this->isActive($id)) {
302 if ($this->getLatestApprovedRevision($id)) {
308 function isHiddenForUser($id = null) { argument
309 if (!$this->isHidden($id)) {
313 if ($id == null) {
315 $id = $ID;
320 return auth_quickaclcheck($id) < AUTH_EDIT;
337 function isActive($id = null) { argument
338 if ($id == null) {
340 $id = $ID;
342 if (!$this->in_namespace($this->getConf('apr_namespaces'), $id)) {
348 if ($this->in_namespace($no_apr_namespaces, $id)) {
358 * @param string $id
363 public function getDifflink($id, $rev1, $rev2) { argument
368 $difflink = wl($id, $params,true,'&');
400 $id = pathID($ns . $file);
401 if (!empty($valid_ns) && !$this->in_namespace($valid_ns, $id)) {
405 if (!empty($invalid_ns) && $this->in_namespace($invalid_ns, $id)) {
409 if (auth_quickaclcheck($id) < AUTH_DELETE) {
413 $meta = $this->getMeta($id);
414 if ($this->isCurrentRevisionApproved($id)) {
420 $data[] = array($id, $meta['approval'], $meta['last_change']['date']);