XOOPS  2.6.0
xoopslogger.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
31 {
38  public static function getInstance()
39  {
40  static $instance;
41  if (!isset($instance)) {
42  $class = __CLASS__;
43  $instance = new $class();
44  }
45  return $instance;
46  }
47 
53  private function deprecatedWarning()
54  {
55  Xoops::getInstance()->deprecated('XoopsLogger is deprecated since 2.6.0, see Xoops\\Core\\Logger');
56  }
57 
67  public function __set($var, $val)
68  {
69  $this->deprecatedWarning();
70  }
71 
80  public function __get($var)
81  {
82  $this->deprecatedWarning();
83  }
84 
94  public function __call($method, $args)
95  {
96  $this->deprecatedWarning();
97  }
98 }
static getInstance()
Definition: Xoops.php:160
__call($method, $args)
Definition: xoopslogger.php:94
$var
Definition: userinfo.php:125
__set($var, $val)
Definition: xoopslogger.php:67
static getInstance()
Definition: xoopslogger.php:38