Gregwar\Formidable\Fields\DateField::generate PHP Method

generate() protected method

protected generate ( )
    protected function generate()
    {
        $this->fields = array();
        $this->fields[] = $this->createSelect('day', range(1, 31));
        $this->fields[] = $this->createSelect('month', range(1, 12));
        $this->fields[] = $this->createSelect('year', range(date('Y') - 120, date('Y')));
    }