Elgg  Version 1.9
Access.php
Go to the documentation of this file.
1 <?php
12 class Elgg_Access {
17  private $ignore_access;
18 
19  // @codingStandardsIgnoreStart
26  public function get_ignore_access() {
27  elgg_deprecated_notice('Elgg_Access::get_ignore_access() is deprecated by Elgg_Access::getIgnoreAccess()', 1.8);
28  return $this->getIgnoreAccess();
29  }
30  // @codingStandardsIgnoreEnd
31 
37  public function getIgnoreAccess() {
38  return $this->ignore_access;
39  }
40 
41  // @codingStandardsIgnoreStart
51  public function set_ignore_access($ignore = true) {
52  elgg_deprecated_notice('Elgg_Access::set_ignore_access() is deprecated by Elgg_Access::setIgnoreAccess()', 1.8);
53  return $this->setIgnoreAccess($ignore);
54  }
55  // @codingStandardsIgnoreEnd
56 
64  public function setIgnoreAccess($ignore = true) {
65  $prev = $this->ignore_access;
66  $this->ignore_access = $ignore;
67 
68  return $prev;
69  }
70 }
set_ignore_access($ignore=true)
Set ignore access.
Definition: Access.php:51
setIgnoreAccess($ignore=true)
Set ignore access.
Definition: Access.php:64
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1171
get_ignore_access()
Get current ignore access setting.
Definition: Access.php:26
getIgnoreAccess()
Get current ignore access setting.
Definition: Access.php:37