Add referrerType.

@param \BlackForest\PiwikBundle\Entity\PiwikReferrerType $referrerType

@return PiwikSite
767406
public function addReferrerType(\BlackForest\PiwikBundle\Entity\PiwikReferrerType $referrerType)
    {
        $this->referrerType[] = $referrerType;

        return $this;
    }
751380
public static function checkReferrer($Referrer = false, $Bot_Referrer_List = false)
    {
        $checkOwn   = false;
        $checkLocal = false;
        
        //First nabble/semalt-blocker
        if (false !== $Referrer) 
        {
        	$_SERVER['HTTP_REFERER'] = $Referrer;
        }
        //returns true when a blocked referrer is detected
        $found = Blocker::blocked(); 
        if (true === $found) 
        {
        	return true;
        }
        
        //Second own list
        $botreferrerlist = false;
        $botreferrerlist = static::getReferrerOwnList($Bot_Referrer_List);
        $referrer_DNS    = static::getReferrerDns($Referrer);
        if ($botreferrerlist !== false) 
        {
        	$checkOwn = static::checkReferrerList($botreferrerlist, $referrer_DNS);
        }

        //Third, user local list (localconfig)
       	$botreferrerlist = static::getReferrerLocalList();
       	if ($botreferrerlist !== false)
       	{
       	    $checkLocal = static::checkReferrerList($botreferrerlist, $referrer_DNS);
       	}
       	
       	if ($checkOwn === true || $checkLocal === true) 
       	{
       		return true;
       	}
        return false;
    }
235249
public function addLanguage(\BlackForest\PiwikBundle\Entity\PiwikLanguage $language)
    {
        $this->language[] = $language;

        return $this;
    }
1033187
public function setReferrer($referrer)
    {
        if(!($referrer instanceof HttpUrlInterface)) {
            $referrer = $this->getObject('lib:http.url', array('url' => $referrer));
        }

        $this->_referrer = $referrer;

        return $this;
    }
1119978
private function getReferrerSparklineParams($referrerType)
    {
        $totalRow = $this->translator->translate('General_Total');

        return array(
            'columns'      => array('nb_visits'),
            'rows'         => array(self::getTranslatedReferrerTypeLabel($referrerType), $totalRow),
            'typeReferrer' => $referrerType,
            'module'       => $this->pluginName,
            'action'       => 'getReferrerType'
        );
    }
30581
public function addReference(Reference $reference)
    {
        $index = count($this->referenceList);
        $this->referenceList[$index] = $reference
            ->setLocator($this)
            ->setIndex($index);
        return $this;
    }
75966
public function setType(\BlackForest\PiwikBundle\Entity\PiwikActionType $type = null)
    {
        $this->type = $type;

        return $this;
    }
538504
public function setReferrer($referrer)
    {
        if(!($referrer instanceof KHttpUrlInterface)) {
            $referrer = $this->getObject('lib:http.url', array('url' => $referrer));
        }

        $this->_referrer = $referrer;

        return $this;
    }
654300
public static <T> Reference<T> create(ReferenceType type, T referent) {
		return create(type, referent, null);
	}
732504
public function setType(\Wucdbm\Bundle\MenuBuilderBundle\Entity\RouteParameterType $type) {
        $this->type = $type;

        return $this;
    }
124680
public function setGetAllHtmlPrefix($referrerType)
    {
        // get singular label for referrer type
        $indexTranslation = '';
        switch ($referrerType) {
            case Common::REFERRER_TYPE_DIRECT_ENTRY:
                $indexTranslation = 'Referrers_DirectEntry';
                break;
            case Common::REFERRER_TYPE_SEARCH_ENGINE:
                $indexTranslation = 'General_ColumnKeyword';
                break;
            case Common::REFERRER_TYPE_SOCIAL_NETWORK:
                $indexTranslation = 'Referrers_ColumnSocial';
                break;
            case Common::REFERRER_TYPE_WEBSITE:
                $indexTranslation = 'Referrers_ColumnWebsite';
                break;
            case Common::REFERRER_TYPE_CAMPAIGN:
                $indexTranslation = 'Referrers_ColumnCampaign';
                break;
            default:
                // case of newsletter, partners, before Piwik 0.2.25
                $indexTranslation = 'General_Others';
                break;
        }

        $label = strtolower(Piwik::translate($indexTranslation));

        // return html that displays it as grey & italic
        return '<span class="datatable-label-category">(' . $label . ')</span>';
    }
90972
public function removeReferrerType(\BlackForest\PiwikBundle\Entity\PiwikReferrerType $referrerType)
    {
        return $this->referrerType->removeElement($referrerType);
    }
963170
protected static function checkReferrerList($botreferrerlist, $referrer_DNS)
    {
        //Prüfung
        foreach ($botreferrerlist as $botreferrer)
        {
            $CheckBotRef = str_ireplace($botreferrer, '#', $referrer_DNS);
            if ($referrer_DNS != $CheckBotRef)
            {
                return true;
            };
        }
        return false;
    }
380900
public function setReferrer($referrer = '')
    {
        $this->referrer = $referrer;
        $this->debug->info(__FUNCTION__, 'setReferrer: ', $this->referrer);

        return $this;
    }
179662
public Request referer(String refererValue){
        final String referer = RequestHeaderFields.REFERER.getName();
        return this.setHeader(referer, refererValue);
    }
5192
public function AddrAppend($type, $addr) {
    $addr_str = $type . ': ';
    $addresses = array();
    foreach ($addr as $a) {
      $addresses[] = $this->AddrFormat($a);
    }
    $addr_str .= implode(', ', $addresses);
    $addr_str .= $this->LE;

    return $addr_str;
  }
80227
public function addBrowser(\BlackForest\PiwikBundle\Entity\PiwikBrowser $browser)
    {
        $this->browser[] = $browser;

        return $this;
    }