Exemple #1
0
 /**
  * 获取实例
  * @access public
  * @return XF_View_Helper_Header_Meta
  */
 public static function getInstance($meta = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     if (XF_Functions::isEmpty($meta) === false) {
         self::$_instance->appendMeta($meta);
     }
     return self::$_instance;
 }
Exemple #2
0
 /**
  * 获取meta
  * @param string $var
  * @return XF_View_Helper_Header_Meta
  */
 public function headeMeta($var)
 {
     return XF_View_Helper_Header_Meta::getInstance($var);
 }