<?php

/**
 * NodeI18n form base class.
 *
 * @package    form
 * @subpackage node_i18n
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseNodeI18nForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                      => new sfWidgetFormInputHidden(),
      'culture'                 => new sfWidgetFormInputHidden(),
      'url_type'                => new sfWidgetFormInput(),
      'url_identifier'          => new sfWidgetFormInput(),
      'title'                   => new sfWidgetFormInput(),
      'sub_title'               => new sfWidgetFormInput(),
      'browser_title_type'      => new sfWidgetFormInput(),
      'browser_title_content'   => new sfWidgetFormInput(),
      'seo_keywords_type'       => new sfWidgetFormInput(),
      'seo_keywords_content'    => new sfWidgetFormInput(),
      'seo_description_type'    => new sfWidgetFormInput(),
      'seo_description_content' => new sfWidgetFormInput(),
      'menu_title_type'         => new sfWidgetFormInput(),
      'menu_title_content'      => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'                      => new sfValidatorPropelChoice(array('model' => 'Node', 'column' => 'id', 'required' => false)),
      'culture'                 => new sfValidatorPropelChoice(array('model' => 'NodeI18n', 'column' => 'culture', 'required' => false)),
      'url_type'                => new sfValidatorInteger(),
      'url_identifier'          => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'title'                   => new sfValidatorString(array('max_length' => 255)),
      'sub_title'               => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'browser_title_type'      => new sfValidatorInteger(),
      'browser_title_content'   => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'seo_keywords_type'       => new sfValidatorInteger(),
      'seo_keywords_content'    => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'seo_description_type'    => new sfValidatorInteger(),
      'seo_description_content' => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'menu_title_type'         => new sfValidatorInteger(),
      'menu_title_content'      => new sfValidatorString(array('max_length' => 255, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('node_i18n[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'NodeI18n';
  }


}
