thd/lib/form/doctrine/base/BaseThdVideoForm.class.php
changeset 104 8e4fe6f3337d
parent 103 d2af8a210f5d
child 105 c8f710cd1fb1
--- a/thd/lib/form/doctrine/base/BaseThdVideoForm.class.php	Wed Jun 01 14:07:43 2016 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-<?php
-
-/**
- * ThdVideo form base class.
- *
- * @package    form
- * @subpackage thd_video
- * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 8508 2008-04-17 17:39:15Z fabien $
- */
-class BaseThdVideoForm extends BaseFormDoctrine
-{
-  public function setup()
-  {
-    $this->setWidgets(array(
-      'id'       => new sfWidgetFormInputHidden(),
-      'ref'      => new sfWidgetFormDoctrineChoice(array('model' => 'ThdSegment', 'add_empty' => false)),
-      'film_ref' => new sfWidgetFormDoctrineChoice(array('model' => 'ThdFilm', 'add_empty' => false)),
-      'file'     => new sfWidgetFormInput(),
-      'title'    => new sfWidgetFormInput(),
-    ));
-
-    $this->setValidators(array(
-      'id'       => new sfValidatorDoctrineChoice(array('model' => 'ThdVideo', 'column' => 'id', 'required' => false)),
-      'ref'      => new sfValidatorDoctrineChoice(array('model' => 'ThdSegment')),
-      'film_ref' => new sfValidatorDoctrineChoice(array('model' => 'ThdFilm')),
-      'file'     => new sfValidatorString(array('max_length' => 255)),
-      'title'    => new sfValidatorString(array('max_length' => 255, 'required' => false)),
-    ));
-
-    $this->widgetSchema->setNameFormat('thd_video[%s]');
-
-    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
-
-    parent::setup();
-  }
-
-  public function getModelName()
-  {
-    return 'ThdVideo';
-  }
-
-}