Reflection is a bundled PHP class: http://php.net/manual/en/book.reflection.php
Add a namespace or use something less likely to collide.
namespace CoolProject;
class Reflection extends \ElggObject{}
if (!update_subtype('object', 'reflection', \CoolProject\Reflection::class)) { add_subtype('object', 'reflection', \CoolProject\Reflection::class); }
Make sure the class is PSR-0 compliant, so put it in /mod/cool_project/classes/CoolProject/Reflection.php
That makes perfect sense, thank you!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.