Advertisement
Guest User

SamopoczucieType.php

a guest
Jul 17th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Toffiak\TestBundle\Form;
  4.  
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\FormBuilder;
  7.  
  8. class SamopoczucieType extends AbstractType {
  9.  
  10.     public function buildForm(FormBuilder $builder, array $options) {
  11.         $builder->add('samopoczucie', 'choice',
  12.             array(
  13.                 'choices' => array(
  14.                     1 => 'bardzo źle',
  15.                     2 => 'źle',
  16.                     3 => 'średnio',
  17.                     4 => 'dobrze',
  18.                     5 => 'wspaniale'
  19.                 ),
  20.                 'expanded' => true
  21.             )
  22.         );
  23.     }
  24.  
  25.     public function getName() {
  26.         return 'form_name';
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement