// self::$logger->debug("issue $this->bug_id markAsRead: user $userid already marked."); } } /** * * @param type $userid * @return int timestamp date of read OR 0 if user did not read */ public function isReadBy($userid) { if (!array_key_exists($userid, $this->readByList)) { return 0; } return $this->readByList["{$userid}"]; } public function getReadByList($formatted = FALSE) { if ($formatted) { $list = array(); foreach ($this->readByList as $uid => $t) { $user = UserCache::getInstance()->getUser($uid); $list[$user->getRealname()] = date('Y-m-d H:i:s', $t); } return $list; } else { return $this->readByList; } } } IssueNote::staticInit();