Helper\Stats::onlineUsage PHP Method

onlineUsage() public static method

后端统计 在线时间区间
public static onlineUsage ( integer $type ) : integer
$type integer
return integer
    public static function onlineUsage($type = 0)
    {
        $querySQL = "SELECT ";
        // sql...
        $stn = DB::getInstance()->prepare($querySQL);
        $stn->execute();
        $count = $stn->fetch(DB::FETCH_NUM);
        return $count[0] != null ?: 0;
    }