Esempio n. 1
0
 /**
  * Prüft Ausschlusskriterium von Affiliates
  * @param affiliate $affiliate
  * @return boolean
  */
 private function exclude($affiliate)
 {
     $pageButton = $affiliate->getPageButton();
     if ($this->acceptedOnly && !$affiliate->affiliateIsAccpted()) {
         return true;
     }
     if ($this->textOnly == 1 && empty($pageButton)) {
         return true;
     }
     if ($this->textOnly == 2 && !empty($pageButton)) {
         return true;
     }
     return false;
 }