<commit_before><?php

/**
 * Form controller class
 *
 * @see https://wiki.civicrm.org/confluence/display/CRMDOC/QuickForm+Reference
 */
class CRM_Basis_Form_KlantMedewerker extends CRM_Core_Form {
  private $_sectorList = array();
  private $_contactData = array();

  public function buildQuickForm() {

    $this->add('text', 'employer_name', ts('Werkgever '), array(), FALSE);
    $this->add('text', 'employer_vat', ts('BTW nummer '), array(), FALSE);

    $this->add('text', 'employee_national_nbr', ts('Rijksregisternummer '), array(), FALSE);
    $this->add('text', 'employee_personnel_nbr', ts('Personeelsnummer'), array(), FALSE);

    $this->add('text', 'display_name', ts('<NAME>'), array(), TRUE);
    $this->add('text', 'supplemental_address_1', ts('Tweede lijn'), array(), FALSE);
    $this->add('text', 'street_address', ts('Adres (straat en huisnummer)'), array(), TRUE);
    $this->add('text', 'postal_code', ts('Postcode'), array(), TRUE);
    $this->add('text', 'city', ts('Gemeente'), array(), TRUE);

    $this->add('text', 'employee_partner', ts('Partner'), array(), FALSE);

    $this->add('text', 'phone', ts('Telefoon'), array(), FALSE);
    $this->add('text', 'mobile', ts('GSM'), array(), FALSE);

    $this->add('text', 'employee_level1', ts('Niveau 1'), array(), FALSE);
    $this->add('text', 'employee_code_level2', ts('Code Niveau 2'), array(), FALSE);
    $this->add('text', 'employee_level2', ts('Niveau 2'), array(), FALSE);
    $this->add('text', 'employee_level3', ts('Niveau 3'), array(), FALSE);

    $this->add('text', 'employee_function', ts('Functie'), array(), FALSE);

    $dateParts     = implode( CRM_Core_DAO::VALUE_SEPARATOR, array( 'Y', 'M' ) );

    $this->add( 'datepicker', 'employee_date_in',  ts('Datum in dienst'), array(), FALSE);
    $this->add( 'datepicker', 'employee_date_out',  ts('Datum uit dienst'), array(), FALSE);


    $this->addButtons(array(
      array('type' => 'next', 'name' => ts('Save'), 'isDefault' => true,),
      array('type' => 'cancel', 'name' => ts('Cancel')),
    ));

    // export form elements
    $this->assign('elementNames', $this->getRenderableElementNames());

    if (isset($this->_contactData[0])) {
          // set values to screen
          $this->getElement('employee_national_nbr')->setValue($this->_contactData[0]['employee_national_nbr']);
          $this->getElement('employee_personnel_nbr')->setValue($this->_contactData[0]['employee_personnel_nbr']);
          $this->getElement('display_name')->setValue($this->_contactData[0]['display_name']);
          $this->getElement('supplemental_address_1')->setValue($this->_contactData[0]['supplemental_address_1']);
          $this->getElement('street_address')->setValue($this->_contactData[0]['street_address']);
          $this->getElement('postal_code')->setValue($this->_contactData[0]['postal_code']);
          $this->getElement('city')->setValue($this->_contactData[0]['city']);

          $this->getElement('employee_partner')->setValue($this->_contactData[0]['employee_partner']);
          $this->getElement('phone')->setValue($this->_contactData[0]['phone']);<commit_msg>Testen verblijfadres<commit_after><?php

/**
 * Form controller class
 *
 * @see https://wiki.civicrm.org/confluence/display/CRMDOC/QuickForm+Reference
 */
class CRM_Basis_Form_KlantMedewerker extends CRM_Core_Form {
  private $_sectorList = array();
  private $_contactData = array();

  public function buildQuickForm() {

    $this->add('text', 'employer_name', ts('Werkgever '), array(), FALSE);
    $this->add('text', 'employer_vat', ts('BTW nummer '), array(), FALSE);

    $this->add('text', 'employee_national_nbr', ts('Rijksregisternummer '), array(), FALSE);
    $this->add('text', 'employee_personnel_nbr', ts('Personeelsnummer'), array(), FALSE);

    $this->add('text', 'display_name', ts('<NAME>'), array(), TRUE);
    $this->add('text', 'supplemental_address_1', ts('Tweede lijn'), array(), FALSE);
    $this->add('text', 'street_address', ts('Adres (straat en huisnummer)'), array(), TRUE);
    $this->add('text', 'postal_code', ts('Postcode'), array(), TRUE);
    $this->add('text', 'city', ts('Gemeente'), array(), TRUE);

    $this->add('text', 'employee_partner', ts('Partner'), array(), FALSE);

    $this->add('text', 'phone', ts('Telefoon'), array(), FALSE);
    $this->add('text', 'mobile', ts('GSM'), array(), FALSE);

    $this->add('text', 'employee_level1', ts('Niveau 1'), array(), FALSE);
    $this->add('text', 'employee_code_level2', ts('Code Niveau 2'), array(), FALSE);
    $this->add('text', 'employee_level2', ts('Niveau 2'), array(), FALSE);
    $this->add('text', 'employee_level3', ts('Niveau 3'), array(), FALSE);

    $this->add('text', 'employee_function', ts('Functie'), array(), FALSE);

    $dateParts     = implode( CRM_Core_DAO::VALUE_SEPARATOR, array( 'Y', 'M' ) );

    $this->add( 'datepicker', 'employee_date_in',  ts('Datum in dienst'), array(), FALSE);
    $this->add( 'datepicker', 'employee_date_out',  ts('Datum uit dienst'), array(), FALSE);

    $this->add('text', 'supplemental_address_1_residence', ts('Tweede lijn (verblijfplaats)'), array(), FALSE);
    $this->add('text', 'street_address_residence', ts('Adres verblijf (straat en huisnummer)'), array(), TRUE);
    $this->add('text', 'postal_code_residence', ts('Postcode verblijf'), array(), TRUE);
    $this->add('text', 'city_residence', ts('Gemeente verblijf'), array(), TRUE);


    $this->addButtons(array(
      array('type' => 'next', 'name' => ts('Save'), 'isDefault' => true,),
      array('type' => 'cancel', 'name' => ts('Cancel')),
    ));

    // export form elements
    $this->assign('elementNames', $this->getRenderableElementNames());

    if (isset($this->_contactData[0])) {
          // set values to screen
          $this->getElement('employee_national_nbr')->setValue($this->_contactData[0]['employee_national_nbr']);
          $this->getElement('employee_personnel_nbr')->setValue($this->_contactData[0]['employee_personnel_nbr']);
          $this->getElement('display_name')->setValue($this->_contactData[0]['display_name']);
          $this->getElement('supplemental_address_1')->setValue($this->_contactData[0]['supplemental_address_1']);
          $this->getElement('street_address')->setValue($this->_contactData[0]['street_address']);
          $this->getElement('postal_code')->setValue($this->_contactData[0]['postal_code']);
          $this->getElement('city')->setValue($this->_contactData[0]['city']);

          $this->getElement('employee_partner')->setValue($this->_contactData[0]['employee_partner']);
          $this->getElement('phone')->setValue($this->_contactData[0]['phone']);
{'fraction_non_alphanumeric': 0.22378881055947203, 'fraction_numerical': 0.006449677516124194, 'mean_word_length': 5.3686723973256925, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 119, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '800105', 'n_tokens_mistral': 2198, 'n_tokens_neox': 2109, 'n_words': 362}