original_string: public function setVisitorIpAddress(&$ip)
      {
          $ipObject = IP::fromBinaryIP($ip);
  
          if (!$this->isActive()) {
              Common::printDebug("Visitor IP was _not_ anonymized: ". $ipObject->toString());
              return;
          }
  
          $privacyConfig = new Config();
  
          $newIpObject = self::applyIPMask($ipObject, $privacyConfig->ipAddressMaskLength);
          $ip = $newIpObject->toBinary();
  
          Common::printDebug("Visitor IP (was: ". $ipObject->toString() .") has been anonymized: ". $newIpObject->toString());
      }
code: public function setVisitorIpAddress(&$ip)
      {
          $ipObject = IP::fromBinaryIP($ip);
  
          if (!$this->isActive()) {
              Common::printDebug("Visitor IP was _not_ anonymized: ". $ipObject->toString());
              return;
          }
  
          $privacyConfig = new Config();
  
          $newIpObject = self::applyIPMask($ipObject, $privacyConfig->ipAddressMaskLength);
          $ip = $newIpObject->toBinary();
  
          Common::printDebug("Visitor IP (was: ". $ipObject->toString() .") has been anonymized: ". $newIpObject->toString());
      }
code_tokens: public function setVisitorIpAddress ( & $ ip ) { $ ipObject = IP :: fromBinaryIP ( $ ip ) ; if ( ! $ this -> isActive ( ) ) { Common :: printDebug ( "Visitor IP was _not_ anonymized: " . $ ipObject -> toString ( ) ) ; return ; } $ privacyConfig = new Config ( ) ; $ newIpObject = self :: applyIPMask ( $ ipObject , $ privacyConfig -> ipAddressMaskLength ) ; $ ip = $ newIpObject -> toBinary ( ) ; Common :: printDebug ( "Visitor IP (was: " . $ ipObject -> toString ( ) . ") has been anonymized: " . $ newIpObject -> toString ( ) ) ; }
docstring: Hook on Tracker.Visit.setVisitorIp to anomymize visitor IP addresses
  @param string $ip IP address in binary format (network format)
docstring_tokens: Hook on Tracker . Visit . setVisitorIp to anomymize visitor IP addresses