<commit_before><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
 * @license   MIT
 * @author    <EMAIL>
 */

namespace Jobs\Form;

use Zend\Form\Fieldset;
use Core\Entity\Hydrator\EntityHydrator;

/**
 * Defines the formular fields of the base formular of a job opening.
 */
class BaseFieldset extends Fieldset
{
    /**
     * name of the used geo location Engine
     *
     * @var string  $locationEngineType
     */
    protected $locationEngineType;

    /**
     * @param $locationEngineType
     */
    public function setLocationEngineType($locationEngineType) {
        $this->locationEngineType = $locationEngineType;
    }
 
    public function getHydrator()
    {
        if (!$this->hydrator) {
            $hydrator = new EntityHydrator();
            /*
            $datetimeStrategy = new Hydrator\DatetimeStrategy();
            $datetimeStrategy->setHydrateFormat(Hydrator\DatetimeStrategy::FORMAT_MYSQLDATE);
            $hydrator->addStrategy('datePublishStart', $datetimeStrategy);
             */
            $this->setHydrator($hydrator);
        }
        return $this->hydrator;
    }
    
    public function init()
    {
        $this->setAttribute('id', 'job-fieldset');

        $this->setName('jobBase');
        
        $this->add(
            array(
            'type' => 'Text',
            'name' => 'title',
            'options' => array(
                'label' => /*@translate*/ 'Job title',
                'description' => /*@translate*/ 'Please enter the job title'
            ),
            )
        );
       
        $this->add(
            array(
            'type' => 'Location',
            'name' => 'location',
            'options' => array(
                'label' => /*@translate*/ 'Location',
                'description' => /*@translate*/ 'Please enter the location of the job',
                'engine_type' => $this->locationEnginType,<commit_msg>[Jobs] sets the correct Geo engine type in location fields<commit_after><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
 * @license   MIT
 * @author    <EMAIL>
 */

namespace Jobs\Form;

use Zend\Form\Fieldset;
use Core\Entity\Hydrator\EntityHydrator;

/**
 * Defines the formular fields of the base formular of a job opening.
 */
class BaseFieldset extends Fieldset
{
    /**
     * name of the used geo location Engine
     *
     * @var string  $locationEngineType
     */
    protected $locationEngineType;

    /**
     * @param $locationEngineType
     */
    public function setLocationEngineType($locationEngineType) {
        $this->locationEngineType = $locationEngineType;
    }
 
    public function getHydrator()
    {
        if (!$this->hydrator) {
            $hydrator = new EntityHydrator();
            /*
            $datetimeStrategy = new Hydrator\DatetimeStrategy();
            $datetimeStrategy->setHydrateFormat(Hydrator\DatetimeStrategy::FORMAT_MYSQLDATE);
            $hydrator->addStrategy('datePublishStart', $datetimeStrategy);
             */
            $this->setHydrator($hydrator);
        }
        return $this->hydrator;
    }
    
    public function init()
    {
        $this->setAttribute('id', 'job-fieldset');

        $this->setName('jobBase');
        
        $this->add(
            array(
            'type' => 'Text',
            'name' => 'title',
            'options' => array(
                'label' => /*@translate*/ 'Job title',
                'description' => /*@translate*/ 'Please enter the job title'
            ),
            )
        );
       
        $this->add(
            array(
            'type' => 'Location',
            'name' => 'location',
            'options' => array(
                'label' => /*@translate*/ 'Location',
                'description' => /*@translate*/ 'Please enter the location of the job',
                'engine_type' => $this->locationEngineType,
{'fraction_non_alphanumeric': 0.13531187122736418, 'fraction_numerical': 0.004024144869215292, 'mean_word_length': 1.911420204978038, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 49, 'https://': 0, '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': '7237941', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1100, 'n_words': 244}