PHP Class Grw

Inheritance: extends FeiController
Exibir arquivo Open project: wufeifei/grw Class Usage Examples

Public Methods

Method Description
__Get_city ( ) : mixed 获取当前用户所在城市
__Get_content ( $url ) : mixed 请求远程数据
__Get_ip ( ) : string 获取当前用户IP
__alert ( $method, $msg ) 输出提示
__check_istrue ( $obj, $b ) 检测对象是否真并返回JSON
__construct ( )
__get_cate_num ( $catid ) : boolean | integer 获取总的待办事项数
__get_cate_num2 ( $catid ) : boolean | integer 获取栏目待办事项数
__get_pname_bypd ( $parentid ) : mixed 根据父ID获取父栏目名称
__haschild ( $catid ) : boolean 检测是否有子栏目
__initial ( $c ) 初始化
__is_ie ( ) : boolean 检测是否是IE浏览器
__show_result ( $event, $status ) 返回错误信息
alert ( ) 获取用户提示
index ( ) Index
login ( ) 登陆
logout ( ) 退出登陆
utf8Substr ( $str, $from, $len ) : mixed 中文字符截断
utf8_strlen ( null $string = NULL ) : integer 字符长度计算
weather ( ) 天气接口

Method Details

__Get_city() public method

获取当前用户所在城市
public __Get_city ( ) : mixed
return mixed

__Get_content() public method

请求远程数据
public __Get_content ( $url ) : mixed
$url
return mixed

__Get_ip() public method

获取当前用户IP
public __Get_ip ( ) : string
return string

__alert() public method

输出提示
public __alert ( $method, $msg )
$method
$msg

__check_istrue() public method

检测对象是否真并返回JSON
public __check_istrue ( $obj, $b )
$obj
$b

__construct() public method

public __construct ( )

__get_cate_num() public method

获取总的待办事项数
public __get_cate_num ( $catid ) : boolean | integer
$catid
return boolean | integer

__get_cate_num2() public method

获取栏目待办事项数
public __get_cate_num2 ( $catid ) : boolean | integer
$catid
return boolean | integer

__get_pname_bypd() public method

根据父ID获取父栏目名称
public __get_pname_bypd ( $parentid ) : mixed
$parentid
return mixed

__haschild() public method

检测是否有子栏目
public __haschild ( $catid ) : boolean
$catid
return boolean

__initial() public method

初始化
public __initial ( $c )
$c

__is_ie() public method

检测是否是IE浏览器
public __is_ie ( ) : boolean
return boolean

__show_result() public method

返回错误信息
public __show_result ( $event, $status )
$event
$status

alert() public method

获取用户提示
public alert ( )

index() public method

Index
public index ( )

login() public method

登陆
public login ( )

logout() public method

退出登陆
public logout ( )

utf8Substr() public method

中文字符截断
public utf8Substr ( $str, $from, $len ) : mixed
$str
$from
$len
return mixed

utf8_strlen() public method

字符长度计算
public utf8_strlen ( null $string = NULL ) : integer
$string null
return integer

weather() public method

天气接口
public weather ( )