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