protected function buildSingleExpiryElement()
 {
     $this->createExpiryMonthControl();
     $this->createExpiryYearControl();
     $this->expiryMonthControl->setCssClass("hidden-control");
     $this->expiryYearControl->setCssClass("hidden-control");
     $month = $this->getSelectedExpiryMonth();
     $year = $this->getSelectedExpiryYear();
     $defaultValue = '';
     if ($month !== null && $year !== null) {
         $defaultValue = str_replace('YY', $year, $this->getExpiryFieldFormat());
         $defaultValue = str_replace('MM', $month, $defaultValue);
     }
     $this->expiryControl = new Customweb_Form_Control_TextInput($this->getExpiryFieldName(), $defaultValue);
     $control = new Customweb_Form_Control_MultiControl('expiration', array($this->expiryControl, $this->expiryMonthControl, $this->expiryYearControl));
     $this->expiryElement = new Customweb_Form_Element(Customweb_I18n_Translation::__('Card Expiration'), $control, Customweb_I18n_Translation::__('Enter the date on which your card expires.') . Customweb_I18n_Translation::__(" <span class='card-expiry-format-note'>The expected format is '!format' where the 'MM' means the month number and 'YY' the year number.</span>", array('!format' => $this->getExpiryFieldFormat())));
     $this->expiryElement->setElementIntention(Customweb_Form_Intention_Factory::getExpirationDateIntention())->setErrorMessage($this->getExpiryElementErrorMessage());
 }