Hello everybody,
I have an algorithm that gives back some objects with different subtypes.
Is there a way to put an if statemant that gives me the possibility to separate the results dependig on the subtype??
Something like: if (object subtype == blog) { print something} else ......
Thank you so much.
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.
- Paweł Sroka@srokap

Paweł Sroka - 0 likes
- Miky Tara@miky_tara

Miky Tara - 0 likes
You must log in to post replies.Do you mean:
if ($entity->getSubtype()=='blog')
?
Yes,thank you for your help :)