original_string: protected function addPeriodSelect(array &$elements, $data)
      {
          $dates = array(
              'gr2t_start_date' => $this->_('Track start'),
              'gr2t_end_date'   => $this->_('Track end'),
              'gto_valid_from'  => $this->_('Valid from'),
              'gto_valid_until' => $this->_('Valid until'),
          );
          // $dates = 'gto_valid_from';
          $this->_addPeriodSelectors($elements, $dates, 'gto_valid_from');
      }
code: protected function addPeriodSelect(array &$elements, $data)
      {
          $dates = array(
              'gr2t_start_date' => $this->_('Track start'),
              'gr2t_end_date'   => $this->_('Track end'),
              'gto_valid_from'  => $this->_('Valid from'),
              'gto_valid_until' => $this->_('Valid until'),
          );
          // $dates = 'gto_valid_from';
          $this->_addPeriodSelectors($elements, $dates, 'gto_valid_from');
      }
code_tokens: protected function addPeriodSelect ( array & $ elements , $ data ) { $ dates = array ( 'gr2t_start_date' => $ this -> _ ( 'Track start' ) , 'gr2t_end_date' => $ this -> _ ( 'Track end' ) , 'gto_valid_from' => $ this -> _ ( 'Valid from' ) , 'gto_valid_until' => $ this -> _ ( 'Valid until' ) , ) ; // $dates = 'gto_valid_from'; $ this -> _addPeriodSelectors ( $ elements , $ dates , 'gto_valid_from' ) ; }
docstring: Add period select to the elements array
  
  @param array $elements
  @param array $data
docstring_tokens: Add period select to the elements array