Class humhub\modules\user\components\UrlRule

Inheritancehumhub\modules\user\components\UrlRule » yii\base\BaseObject
Implementsyii\web\UrlRuleInterface

User Profile URL Rule

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultRoute string Default route to space home humhub\modules\user\components\UrlRule

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$userUrlMap array Cache map with user guid/username pairs humhub\modules\user\components\UrlRule

Property Details

$defaultRoute public property

Default route to space home

public string $defaultRoute 'user/profile'
$userUrlMap protected static property

Cache map with user guid/username pairs

protected static array $userUrlMap = []

Method Details

createUrl() public method

public void createUrl ( $manager, $route, $params )
$manager
$route
$params
getUrlByUserGuid() public static method

Gets usernameby given guid

public static string|null getUrlByUserGuid ( $guid )
$guid string
return string|null

The username

parseRequest() public method

public void parseRequest ( $manager, $request )
$manager
$request