src/User.php
public function isMobile(bool $tablet = true): bool
	{
		$session = $this->session->getSection('user');

		if ($tablet) {
			return $session->isMobile;
		} else {
			return $session->isMobile && !$session->isTablet;
		}
	}
public function isMobile(bool $tablet = true): bool
	{
		$session = $this->session->getSection('user');

		if ($tablet) {
			return $session->isMobile;
		} else {
			return $session->isMobile && !$session->isTablet;
		}
	}
public function isMobile ( bool $ tablet = true ) : bool { $ session = $ this -> session -> getSection ( 'user' ) ; if ( $ tablet ) { return $ session -> isMobile ; } else { return $ session -> isMobile && ! $ session -> isTablet ; } }
Je klientsky prohlizec mobilni verze?
@param bool $tablet patri do skupiny i tablety
@return bool
Je klientsky prohlizec mobilni verze?