GetOptional('validation_pattern', '^' . utils::GetConfig()->Get('phone_number_validation_pattern') . '$'); } public static function GetFormFieldClass() { return '\\Combodo\\iTop\\Form\\Field\\PhoneField'; } public function GetAsHTML($sValue, $oHostObject = null, $bLocalize = true) { if (empty($sValue)) { return ''; } $sUrlDecorationClass = utils::GetConfig()->Get('phone_number_decoration_class'); $sUrlPattern = utils::GetConfig()->Get('phone_number_url_pattern'); $sUrl = sprintf($sUrlPattern, $sValue); return '' . parent::GetAsHTML($sValue) . ''; } }