public class EventManager

class.eventmanager.php #13

The EventManager class is responsible for managing all Event objects in Symphony. Event's are stored on the file system either in the /workspace/events folder or provided by an extension in an /events folder. Events run from the Frontend usually to add new entries to the system, but they are not limited to that facet.

Methods

static string __getClassName(string $handle)

Given a name, returns the full class name of an Event. Events use an 'event' prefix.

Parameters
  • $handle stringThe Event handle

static string|boolean __getClassPath(string $handle)

Finds an Event by name by searching the events folder in the workspace and in all installed extension folders and returns the path to it's folder.

Parameters
  • $handle stringThe handle of the Event free from any Symphony conventions such as event.*.php

Returns

If the Event is found, the function returns the path it's folder, otherwise false.

static string __getDriverPath(string $handle)

Given a name, return the path to the Event class

Parameters
  • $handle stringThe handle of the Event free from any Symphony conventions such as event.*.php

See Also
static string __getHandleFromFilename(string $filename)

Given the filename of an Event return it's handle. This will remove the Symphony convention of event.*.php

Parameters
  • $filename stringThe filename of the Event

static void about(mixed $name)
static Event create(string $handle, array $env)

Creates an instance of a given class and returns it.

Parameters
  • $handle stringThe handle of the Event to create

  • $env arrayThe environment variables from the Frontend class which includes any params set by Symphony or Datasources or by other Events

static array listAll()

Finds all available Events by searching the events folder in the workspace and in all installed extension folders. Returns an associative array of Events.

Returns

Associative array of Events with the key being the handle of the Event and the value being the Event's about() information.

See Also

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details