mirror of https://github.com/IoTcat/ushio-img.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
<?php |
|
/** |
|
* widget对象帮手 |
|
* |
|
* @category typecho |
|
* @package Widget |
|
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org) |
|
* @license GNU General Public License 2.0 |
|
* @version $Id$ |
|
*/ |
|
|
|
/** |
|
* widget对象帮手,用于处理空对象方法 |
|
* |
|
* @category typecho |
|
* @package Widget |
|
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org) |
|
* @license GNU General Public License 2.0 |
|
*/ |
|
class Typecho_Widget_Helper_Empty |
|
{ |
|
/** |
|
* 单例句柄 |
|
* |
|
* @access private |
|
* @var Typecho_Widget_Helper_Empty |
|
*/ |
|
private static $_instance = null; |
|
|
|
/** |
|
* 获取单例句柄 |
|
* |
|
* @access public |
|
* @return Typecho_Widget_Helper_Empty |
|
*/ |
|
public static function getInstance() |
|
{ |
|
if (null === self::$_instance) { |
|
self::$_instance = new Typecho_Widget_Helper_Empty(); |
|
} |
|
|
|
return self::$_instance; |
|
} |
|
|
|
/** |
|
* 所有方法请求直接返回 |
|
* |
|
* @access public |
|
* @param string $name 方法名 |
|
* @param array $args 参数列表 |
|
* @return void |
|
*/ |
|
public function __call($name, $args) |
|
{ |
|
return; |
|
} |
|
}
|
|
|