Elgg/Elgg — pull request #462 by cristo-rabani (2012-12-07 20:44:30+00:00)
Title: Fixes #4951 - Added ElggBogusEntity classes

The idea is to handle situations where related entity (container/owner) is inaccessible but "content" entity is. In such situation we may want to display i.e. owner entity as "Unknown user" or "Private user" and similarly for the group.
Currently such situation usually causes error with calling method on non-object. Replacing such entity with VERY limited representation may standardize the way how to handle such situations and make handling it easier.
Bogus entity would have to be:
only logical representation - nothing is stored in DB
not writable
limited readability, i.e. only name/title
not interfere with processing access control for "content" entity (canEdit, canWriteToContainer)