Newscoop\Entity\Publication::getCommentsSubscribersModerated PHP Метод

getCommentsSubscribersModerated() публичный Метод

    public function getCommentsSubscribersModerated()
    {
        return $this->commentsSubscribersModerated;
    }

Usage Example

Пример #1
0
 private function getModeratorEmailIfModerationEnabled(Publication $publication, $user = null)
 {
     if ($publication->getCommentsEnabled()) {
         if ($publication->getCommentsSubscribersModerated() && ($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated())) {
             return $publication->getModeratorTo();
         }
         if ($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated() && !$publication->getCommentsSubscribersModerated() && !$user || $publication->getCommentsSubscribersModerated() && !($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated()) && $user) {
             return $publication->getModeratorTo();
         }
     }
 }