class User (View source)

Utility functions for dealing with users in the Content Repository.

Methods

static string
getPersonalWorkspaceNameForUsername(string $username)

Constructs a personal workspace name for the user with the given username.

static string
slugifyUsername(string $username)

Will reduce the username to ascii alphabet and numbers.

Details

static string getPersonalWorkspaceNameForUsername(string $username)

Constructs a personal workspace name for the user with the given username.

Parameters

string $username

Return Value

string

static string slugifyUsername(string $username)

Will reduce the username to ascii alphabet and numbers.

Parameters

string $username

Return Value

string