Plugin developers should only use the constructor to create a new entity.
To retrieve entities, use get_entity() and the elgg_get_entities* functions.
If no arguments are passed, it creates a new entity.
If a database result is passed as a \stdClass instance, it instantiates
that entity.
public __construct ( stdClass $row = null ) | ||
$row | stdClass | Database row result. Default is null to create a new object. |