class UserSelectInstanceFactory implements ApplicationAwareInterface (View source)

Methods for use with the ConcreteUserSelect component - primarily for creating on-the-fly access tokens

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Constants

LABEL_FORMAT_AUTO

LABEL_FORMAT_AUTO_MINIMUM

LABEL_FORMAT_USERNAME

LABEL_FORMAT_EMAIL

LABEL_FORMAT_USERNAME_EMAIL

Properties

protected Application $app from  ApplicationAwareTrait
protected $tokenService

Methods

setApplication(Application $app)

Setter method for the application

__construct(Token $tokenService)

No description

string
getAccessTokenString(string $labelFormat, bool $includeAvatar)

No description

createInstance(string $labelFormat, bool $includeAvatar)

No description

createInstanceFromRequest(Request $request)

No description

bool
instanceMatchesAccessToken(UserSelectInstance $instance, string $accessToken)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(Token $tokenService)

No description

Parameters

Token $tokenService

protected string getAccessTokenString(string $labelFormat, bool $includeAvatar)

No description

Parameters

string $labelFormat
bool $includeAvatar

Return Value

string

UserSelectInstance createInstance(string $labelFormat, bool $includeAvatar)

No description

Parameters

string $labelFormat
bool $includeAvatar

Return Value

UserSelectInstance

createInstanceFromRequest(Request $request)

No description

Parameters

Request $request

bool instanceMatchesAccessToken(UserSelectInstance $instance, string $accessToken)

No description

Parameters

UserSelectInstance $instance
string $accessToken

Return Value

bool