AbstractToken::hasAttribute()

bool hasAttribute(string $name) Returns true if the attribute exists. Parameters string $name The attribute name Return Value bool true if the attribute exists, false otherwise

AbstractToken::getUsername()

string getUsername() Returns the username. Return Value string

AbstractToken::getUser()

mixed getUser() Returns a user representation. Return Value mixed Can be a UserInterface instance, an object implementing a __toString method, or the username as a regular string

AbstractToken::getRoles()

RoleInterface[] getRoles() Returns the user roles. Return Value RoleInterface[] An array of RoleInterface instances.

AbstractToken::getAttributes()

array getAttributes() Returns the token attributes. Return Value array The token attributes

AbstractToken::getAttribute()

mixed getAttribute(string $name) Returns an attribute value. Parameters string $name The attribute name Return Value mixed The attribute value Exceptions InvalidArgumentException When attribute doesn't exist for this token

AbstractToken::eraseCredentials()

eraseCredentials() Removes sensitive information from the token.

AbstractToken

class AbstractToken implements TokenInterface Base class for Token instances. Methods __construct(array $roles = array()) Constructor. RoleInterface[] getRoles() Returns the user roles. string getUsername() Returns the username. mixed getUser() Returns a user representation. setUser(mixed $user) Sets the user in the token. bool isAuthenticated() Returns whether the user is authenticated or not. setAuthenticated($authenticated) Sets the authenticated flag.

AbstractSurrogateFragmentRenderer

class AbstractSurrogateFragmentRenderer extends RoutableFragmentRenderer Implements Surrogate rendering strategy. Methods setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. from RoutableFragmentRenderer __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) Constructor. Response render(string|ControllerReference $uri, Request $request, array $options = array()) Renders a URI an

AbstractRendererEngine::setTheme()

setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. Parameters FormView $view The view to assign the theme(s) to mixed $themes The theme(s). The type of these themes is open to the implementation.