<?php

namespace UBC\Exam\MainBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class ExamType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('campus')
            ->add('faculty')
            ->add('dept')
            ->add('subject_code')
            ->add('year')
            ->add('term')
            ->add('type')
//            ->add('comments')
            ->add('cross_listed')
            ->add('legal_content_owner')
            ->add('legal_uploader')
//            ->add('legal_date')
            ->add('legal_agreed')
            ->add('access_level')
//            ->add('created')
//            ->add('modified')
//            ->add('downloads')
//            ->add('uploaded_by')
        ;
    }

    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'UBC\Exam\MainBundle\Entity\Exam'
        ));
    }

    public function getBlockPrefix()
    {
        return 'ubc_exam_mainbundle_exam';
    }
}

{'avg_line_length': 25.51063829787234, 'max_line_length': 76, 'alphanum_fraction': 0.5421184320266889, 'licenses': ['MIT'], 'repository_name': 'ubc/examdb', 'path': 'src/UBC/Exam/MainBundle/Form/ExamType.php', 'size': 1199, 'lang': 'PHP'}