Hi everyone,
I am still upgrading some plugins from 2.X to 3.X.
The following function does not exist anymore in 3.X
_elgg_get_access_where_sql
What's the name of the new function in 3.X ?
regards,
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
How can I implement the above code in elgg 3.X without using _elgg_get_access_where_sql regards,
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.There is no specific function in Elgg 3 for it. I could help you if you explain exactly what you're trying to do.
Thanks a lot.
I use the _elgg_get_access_where_sql to get a where clause to retrieve the data that a user has permission to read.
My code for elgg 2.X looks as followed.
You should use \Elgg\Database\Clauses\AccessWhereClause
Never tried but you can do it: