Esempio n. 1
0
 public static function isPosted($talk, $user)
 {
     global $wgMemc, $wgEnableWallExt;
     $key = wfMemcKey("HAWelcome-isPosted", $user->getName());
     $isPosted = $wgMemc->get($key, false);
     if ($isPosted) {
         return true;
     }
     if (!empty($wgEnableWallExt)) {
         if (WallHelper::haveMsg($user)) {
             $wgMemc->set($key, true);
             return true;
         }
     }
     $talkExists = $talk->exists();
     $wgMemc->set($key, $talkExists);
     return $talkExists;
 }
Esempio n. 2
0
 protected function recipientWallIsEmpty()
 {
     return !WallHelper::haveMsg($this->recipientObject);
 }