@@ 674-688 (lines=15) @@ | ||
671 | * |
|
672 | * @return array |
|
673 | */ |
|
674 | public function getDiffrentIssuesByLanguage($languageId, $publicationId) |
|
675 | { |
|
676 | $issues = $this->em->getRepository('Newscoop\Entity\Issue') |
|
677 | ->createQueryBuilder('i') |
|
678 | ->select('i.number', 'i.name') |
|
679 | ->where('i.language != :id AND i.publication = :publicationId') |
|
680 | ->setParameters(array( |
|
681 | 'id' => $languageId, |
|
682 | 'publicationId' => $publicationId, |
|
683 | )) |
|
684 | ->getQuery() |
|
685 | ->getArrayResult(); |
|
686 | ||
687 | return $issues; |
|
688 | } |
|
689 | ||
690 | /** |
|
691 | * Gets all articles diffrent from already added user's articles by given language |
|
@@ 699-713 (lines=15) @@ | ||
696 | * |
|
697 | * @return array |
|
698 | */ |
|
699 | public function getDiffrentArticlesByLanguage($languageId, $publicationId) |
|
700 | { |
|
701 | $articles = $this->em->getRepository('Newscoop\Entity\Article') |
|
702 | ->createQueryBuilder('i') |
|
703 | ->select('i.number', 'i.name') |
|
704 | ->where('i.language != :id AND i.publication = :publicationId') |
|
705 | ->setParameters(array( |
|
706 | 'id' => $languageId, |
|
707 | 'publicationId' => $publicationId, |
|
708 | )) |
|
709 | ->getQuery() |
|
710 | ->getArrayResult(); |
|
711 | ||
712 | return $articles; |
|
713 | } |
|
714 | ||
715 | /** |
|
716 | * Update Subscription according to SubscritionData class. |