/** * Filtes IPv6 address. * * 2001:07f8:0018:0002:0000:0000:0000:0147 filters to 2001:7f8:18:2::147 * 2A01:7F8:18:0:0:0:0:0147 filters to 2a01:7f8:18::147 * * @param string $value String to parse size in bytes * @return string */ public function filter($value) { try { $value = OSS_Net_IPv6::formatAddress($value, $this->_type); } catch (Exception $e) { } return $value; }