private function _getComponentMatchJsPart(__IComponent &$component) { $return_value = ''; $component_to_match = $component->getComponentToMatch(); if ($component_to_match != null) { $return_value = $component->getId() . '.add(Validate.Confirmation, { match: \'' . $component_to_match->getId() . '\' });' . "\n"; } return $return_value; }