+ /**
+ * Retrieve contact id of the logged in user
+ * @return integer | NULL contact ID of logged in user
+ */
+ static function getLoggedInContactID() {
+ $session = CRM_Core_Session::singleton();
+ if (!is_numeric($session->get('userID'))) {
+ return NULL;
+ }
+ return $session->get('userID');
+ }
+
+ /**
+ * @return bool
+ */