Lines Matching refs:id

21      * @param string $id
25 function in_namespace($namespace_list, $id) { argument
31 $id = trim($id, ':');
32 $id = explode(':', $id);
44 !isset($id[$current_ns_depth]) ||
46 $namespace[$current_ns_depth] != $id[$current_ns_depth]
109 function getRevision($id = null) { argument
114 $meta = $this->getMeta($id);
122 function getApprovals($id = null) { argument
123 $meta = $this->getMeta($id);
134 function getMeta($id = null) { argument
138 if ($id === null) $id = $ID;
140 if($ID === $id && $INFO['meta']) {
143 $meta = p_get_metadata($id);
146 $this->checkApprovalFormat($meta, $id);
151 function checkApprovalFormat($meta, $id) { argument
177 p_set_metadata($id, array('approval' => $approvals), true, true);
178 p_set_metadata($id, array('approval_version' => 2), true, true);
194 function getSortedApprovedRevisions($id = null) { argument
195 if ($id === null) {
197 $id = $ID;
201 if (!isset($sortedApprovedRevisions[$id])) {
202 $approvals = $this->getApprovals($id);
204 $sortedApprovedRevisions[$id] = $approvals;
207 return $sortedApprovedRevisions[$id];
210 function isRevisionApproved($revision, $id = null) { argument
211 $approvals = $this->getApprovals($id);
218 function isCurrentRevisionApproved($id = null) { argument
219 return $this->isRevisionApproved($this->getRevision($id), $id);
222 function getLatestApprovedRevision($id = null) { argument
223 $approvals = $this->getSortedApprovedRevisions($id);
225 if ($this->isRevisionApproved($revision, $id)) {
293 function isHidden($id = null) { argument
299 if ($id == null) {
301 $id = $ID;
303 if (!$this->isActive($id)) {
307 if ($this->getLatestApprovedRevision($id)) {
313 function isHiddenForUser($id = null) { argument
315 if (!$this->isHidden($id)) {
319 if ($id == null) {
321 $id = $ID;
326 return auth_quickaclcheck($id) < AUTH_EDIT;
343 function isActive($id = null) { argument
344 if ($id == null) {
346 $id = $ID;
348 if (!$this->in_namespace($this->getConf('apr_namespaces'), $id)) {
354 if ($this->in_namespace($no_apr_namespaces, $id)) {
364 * @param string $id
369 public function getDifflink($id, $rev1, $rev2) { argument
374 $difflink = wl($id, $params,true,'&');
406 $id = pathID($ns . $file);
407 if (!empty($valid_ns) && !$this->in_namespace($valid_ns, $id)) {
411 if (!empty($invalid_ns) && $this->in_namespace($invalid_ns, $id)) {
415 if (auth_quickaclcheck($id) < AUTH_DELETE) {
419 $meta = $this->getMeta($id);
420 if ($this->isCurrentRevisionApproved($id)) {
426 $data[] = array($id, $meta['approval'], $meta['last_change']['date']);