Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

generate propel forms

  • Loading branch information...
commit 8f97abfde56b1aaa0bb25cdf29db72a8c3845e77 1 parent 412a55d
Florian Pondepeyre authored
View
29 src/Gr/ModelBundle/Form/Type/NewsType.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class NewsType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\News',
+ 'name' => 'news',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('type');
+ $builder->add('name');
+ $builder->add('content');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('publishedAt');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
27 src/Gr/ModelBundle/Form/Type/NewspaperType.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class NewspaperType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Newspaper',
+ 'name' => 'newspaper',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('name');
+ $builder->add('description');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
32 src/Gr/ModelBundle/Form/Type/PhotoType.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class PhotoType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Photo',
+ 'name' => 'photo',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('themeId');
+ $builder->add('name');
+ $builder->add('photoName');
+ $builder->add('photo');
+ $builder->add('mime');
+ $builder->add('size');
+ $builder->add('description');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
31 src/Gr/ModelBundle/Form/Type/PrehomeType.php
@@ -0,0 +1,31 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class PrehomeType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Prehome',
+ 'name' => 'prehome',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('name');
+ $builder->add('photoName');
+ $builder->add('photo');
+ $builder->add('mime');
+ $builder->add('size');
+ $builder->add('description');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
33 src/Gr/ModelBundle/Form/Type/PublicationType.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class PublicationType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Publication',
+ 'name' => 'publication',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('newspaperId');
+ $builder->add('name');
+ $builder->add('photoName');
+ $builder->add('photo');
+ $builder->add('mime');
+ $builder->add('size');
+ $builder->add('description');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('ordre');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
40 src/Gr/ModelBundle/Form/Type/SiteType.php
@@ -0,0 +1,40 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class SiteType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Site',
+ 'name' => 'site',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('activeHomepage');
+ $builder->add('homepageUrl');
+ $builder->add('titreSlideActu');
+ $builder->add('activeSlideActu');
+ $builder->add('delaySlideActu');
+ $builder->add('autoSlideActu');
+ $builder->add('continiousSlideActu');
+ $builder->add('speedSlideActu');
+ $builder->add('titreSlideExpo');
+ $builder->add('activeSlideExpo');
+ $builder->add('delaySlideExpo');
+ $builder->add('autoSlideExpo');
+ $builder->add('continiousSlideExpo');
+ $builder->add('speedSlideExpo');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ $builder->add('homepage');
+ $builder->add('homepageurl');
+ $builder->add('temporarypage');
+ }
+}
View
29 src/Gr/ModelBundle/Form/Type/SlideType.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class SlideType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Slide',
+ 'name' => 'slide',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('type');
+ $builder->add('priority');
+ $builder->add('title');
+ $builder->add('photo');
+ $builder->add('content');
+ $builder->add('active');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
24 src/Gr/ModelBundle/Form/Type/SubjectType.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class SubjectType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Subject',
+ 'name' => 'subject',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('title');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
33 src/Gr/ModelBundle/Form/Type/ThemeType.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class ThemeType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\Theme',
+ 'name' => 'theme',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('userId');
+ $builder->add('name');
+ $builder->add('photo');
+ $builder->add('photoName');
+ $builder->add('mime');
+ $builder->add('size');
+ $builder->add('description');
+ $builder->add('active');
+ $builder->add('archive');
+ $builder->add('priority');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
View
43 src/Gr/ModelBundle/Form/Type/UserType.php
@@ -0,0 +1,43 @@
+<?php
+
+namespace Gr\ModelBundle\Form\Type;
+
+use Propel\PropelBundle\Form\BaseAbstractType;
+use Symfony\Component\Form\FormBuilderInterface;
+
+class UserType extends BaseAbstractType
+{
+ protected $options = array(
+ 'data_class' => 'Gr\ModelBundle\Model\User',
+ 'name' => 'user',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function buildForm(FormBuilderInterface $builder, array $options)
+ {
+ $builder->add('lname');
+ $builder->add('fname');
+ $builder->add('address');
+ $builder->add('cp');
+ $builder->add('town');
+ $builder->add('country');
+ $builder->add('email');
+ $builder->add('tel');
+ $builder->add('fax');
+ $builder->add('mobile');
+ $builder->add('login');
+ $builder->add('pwd');
+ $builder->add('photo');
+ $builder->add('photoName');
+ $builder->add('mime');
+ $builder->add('size');
+ $builder->add('biography');
+ $builder->add('active');
+ $builder->add('priority');
+ $builder->add('type');
+ $builder->add('createdAt');
+ $builder->add('updatedAt');
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.