public function getProduct()
 {
     $this->__load();
     return parent::getProduct();
 }
Ejemplo n.º 2
0
 /**
  * Get section
  *
  * @param Newscoop\Entity\Ingest\Feed\Entry $entry
  * @return int
  */
 public function getSection(Entry $entry)
 {
     switch ($entry->getSubject()) {
         case '15000000':
             return $this->config['section_sport'];
             break;
         case '1000000':
             return $this->config['section_culture'];
             break;
     }
     //has to be before country checking.
     if ($entry->getProduct() == "swissinfo") {
         return $this->config['section_swiss_info'];
     }
     if ($entry->getCountry() != 'CH') {
         return $this->config['section_international'];
     }
     if ($entry->getProduct() == "Regionaldienst Nord") {
         return $this->config['section_basel'];
     }
     return $this->config['section_other'];
 }