コード例 #1
0
 /**
  * Returns the field labels.
  * 
  * @param bool $includerelations Include relations?
  * 
  * @return array
  *
  * @author Sebastian Diel <*****@*****.**>
  * @since 04.06.2014
  */
 public function fieldLabels($includerelations = true)
 {
     $fieldLabels = array_merge(parent::fieldLabels($includerelations), array('EnableStreet' => _t('SilvercartContactFormPage.EnableStreet'), 'StreetIsRequired' => _t('SilvercartContactFormPage.StreetIsRequired'), 'EnableCity' => _t('SilvercartContactFormPage.EnableCity'), 'CityIsRequired' => _t('SilvercartContactFormPage.CityIsRequired'), 'EnableCountry' => _t('SilvercartContactFormPage.EnableCountry'), 'CountryIsRequired' => _t('SilvercartContactFormPage.CountryIsRequired'), 'EnablePhoneNumber' => _t('SilvercartContactFormPage.EnablePhoneNumber'), 'PhoneNumberIsRequired' => _t('SilvercartContactFormPage.PhoneNumberIsRequired'), 'FormFieldsTab' => _t('SilvercartContactFormPage.FormFieldsTab')));
     $this->extend('updateFieldLabels', $fieldLabels);
     return $fieldLabels;
 }