Esempio n. 1
0
 /**
  * 输出类型设置
  * @access public
  * @param string $type 输出内容的格式类型
  * @return mixed
  */
 public static function type($type = null)
 {
     if (is_null($type)) {
         return self::$type ?: Config::get('default_return_type');
     }
     self::$type = $type;
 }
Esempio n. 2
0
 /**
  * 输出类型设置
  * @access public
  * @param string $type 输出内容的格式类型
  * @return void
  */
 public static function type($type = null)
 {
     if (is_null($type)) {
         return self::$type;
     }
     self::$type = $type;
 }
Esempio n. 3
0
 /**
  * 输出类型设置
  * @access public
  * @param string $type 输出内容的格式类型
  * @return void
  */
 public static function type($type)
 {
     self::$type = $type;
 }