/** * @see PM::getOutstandingNotifications() */ public function getOutstandingNotifications() { if ($this->outstandingNotifications === null) { require_once WCF_DIR . 'lib/data/message/pm/PM.class.php'; $this->outstandingNotifications = PM::getOutstandingNotifications(WCF::getUser()->userID); } return $this->outstandingNotifications; }