Helpers

Contents

Input and output

  • get_input($name) - Grabs information from a form field (or any variable passed using GET or POST). Also sanitises input, stripping Javascript etc.
  • set_input($name, $value) - Forces a value to a particular variable for subsequent retrieval by get_input().

Entity methods

  • $entity->getURL() - Returns the URL of any entity in the system.
  • $entity->getGUID() - Returns the GUID of any entity in the system.
  • $entity->canEdit() - Returns whether or not the current user can edit the entity.
  • $entity->getOwnerEntity() - Returns the ElggUser owner of a particular entity.

Entity and context retrieval

Plugins

Interface and annotations

elgg_view("profile/icon",array('entity' => $entity, 'size' => 'small', 'override' => 'true'))

Search docs