Hi everyone.
I have created elgg object using the following code.
$news = new ElggObject();
$news->subtype = "news";
$news->title = $page->title;
$news->description = $page->description;
$news->tags = $page->tags;
$news->owner_guid = $page->owner_guid;
$news->access_id = ACCESS_PRIVATE;
$news->save();
After object creation how can I update object access_id to ACCESS_PUBLIC
Best regard
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.
- iionly@iionly
iionly - 0 likes
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
You must log in to post replies.It works in the same way
But you wouldn't create a new $news object but fetch the existing entity from the database, e.g. in an action that gets the guid of the news entity from a form
Thanks a lot..