Restrict PHP Connector to members only???

I need to restrict adding/editing events to logged in members only (on the client side this is pretty easy), but how do I do it on the server side?

I also need to restrict the event query to a particular member only.

Here is my code:


$conn = new SchedulerConnector(DB::$db, “MySQL”);



How do I get the member_id to be specific for a given member, and how do I force no one to be able to edit my calendar unless they are logged in and the current member?


Be sure to check following samples:

In general you can use your own custom queries to select visible events for specific users. And also attach handlers and check if indeed event belongs to this user (and he is logged in, etc.) before doing anything.

Best regards,

Thank you that worked! Those examples did exactly what I needed.