public function onlineUsers(): int
	{
		$builder = $this->builder()
			->addSelect('COUNT(DISTINCT([uid])) count')
			->andWhere('[inserted] > %dt', (new \DateTime)->modify('-' . $this->onlineTime . ' minute'))
			->andWhere('[timeOnPage] IS NOT null');
		return $this->execute($builder)->fetch()->count;
	}
public function onlineUsers(): int
	{
		$builder = $this->builder()
			->addSelect('COUNT(DISTINCT([uid])) count')
			->andWhere('[inserted] > %dt', (new \DateTime)->modify('-' . $this->onlineTime . ' minute'))
			->andWhere('[timeOnPage] IS NOT null');
		return $this->execute($builder)->fetch()->count;
	}
public function onlineUsers ( ) : int { $ builder = $ this -> builder ( ) -> addSelect ( 'COUNT(DISTINCT([uid])) count' ) -> andWhere ( '[inserted] > %dt' , ( new \ DateTime ) -> modify ( '-' . $ this -> onlineTime . ' minute' ) ) -> andWhere ( '[timeOnPage] IS NOT null' ) ; return $ this -> execute ( $ builder ) -> fetch ( ) -> count ; }
Vrati online uzivatele
@return int
@throws QueryException
Vrati online uzivatele