I would like to have only events displayed from the currently logged in user.
How can I achieve this? I have already configured the event to have a user field.
I am using the JSONSchedulerconnector
to populate the DHTMLX-Scheduler
.
$connector = new JSONSchedulerConnector(null, "PHPYii");
$connector->set_options("subsubprojects", $subsublist);
$connector->set_options("subprojects", $sublist);
$connector->set_options("projects", $list);
$connector->configure(new Booking(),"id", "start, end, activity, user, project, subproject, subsubproject, status, comment");
$connector->render();
UPDATE: I have tried the filter method, as documented here: https://docs.dhtmlx.com/connector__php__filtration.html#filtermethod
I have inserted before render:
$connector->filter("user", "2");
But it does not work...