Tilmeld\Tilmeld

Tilmeld main class.

Provides an Nymph based user and group manager.

Synopsis

class Tilmeld {
  • // constants
  • const VERSION = '1.0.0-beta.1';
  • const NO_ACCESS = 0;
  • const READ_ACCESS = 1;
  • const WRITE_ACCESS = 2;
  • const FULL_ACCESS = 4;
}

Constants

Name Value
VERSION '1.0.0-beta.1'
NO_ACCESS 0
READ_ACCESS 1
WRITE_ACCESS 2
FULL_ACCESS 4

Members

public

Methods

public

  • addAccessControlSelectors() — Add selectors to a list of options and selectors which will limit results to only entities the user has access to.
  • authenticate() — Check for a TILMELDAUTH cookie, and, if set, authenticate from it.
  • checkPermissions() — Check an entity's permissions for a user.
  • configure() — Apply configuration to Tilmeld.
  • extractToken() — Validate and extract the user from a token.
  • fillSession() — Fill session user data.
  • gatekeeper() — Check to see if the current user has an ability.
  • groupSort() — Sort an array of groups hierarchically.
  • login() — Logs the given user into the system.
  • logout() — Logs the current user out of the system.