O'Reilly logo

Elgg 1.8 Social Networking by Cash Costello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data model

Elgg has a simple, but flexible data model. It supports entities, relationships, and extenders:

  • Entities are roughly nouns. A user, group, or blog post are all examples of entities.
  • Relationships connect two entities. Two users are friends. A user is a member of a group. A user is notified when another user posts a comment.
  • Extenders describe entities. There are two types of extenders: metadata and annotations. A photo has 10 views. A file has been downloaded 300 times. A user's location is Brazil. These are examples of data that is stored as metadata or annotations on an entity.

Entities

ElggEntity is the parent class of all entities. It is an abstract class and is extended by four classes: ElggGroup, ElggObject, ElggSite, and ElggUser ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required