Example #1
0
 public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
 {
     parent::__construct($defaults, $options, $CSRFSecret);
     if ('mobile_frontend' === sfConfig::get('sf_app')) {
         $this->appendMobileInputMode();
     }
 }
 /**
  * Constructor.
  *
  * Notifies the 'form.post_configure' event.
  *
  * @see sfForm
  */
 public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
 {
     //SKeeping the sfFormDoctrine constructor (no object bound to this form)
     sfFormSymfony::__construct($defaults, $options, $CSRFSecret);
     if (self::$dispatcher) {
         self::$dispatcher->notify(new sfEvent($this, 'form.post_configure'));
     }
 }
 /**
  * Handles setting up widget schema for required fields asterisks
  *
  * @see parent
  */
 public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
 {
     $this->setGlobalErrorMessage(sfConfig::get('app_sfJqueryValidationPlugin_default_global_error_message', ''));
     parent::__construct($defaults, $options, $CSRFSecret);
     $this->setUseJqueryValidation(sfConfig::get('app_sfJqueryValidationPlugin_enabled', true) && sfConfig::get('app_sfJqueryValidationPlugin_jquery_validation_by_default'));
     $this->setJqueryValidationGenerator(new sfJqueryValidationGenerator($this));
     $formFormatter = $this->getWidgetSchema()->getFormFormatter();
     if (method_exists($formFormatter, 'setForm')) {
         $formFormatter->setForm($this);
     }
 }
Example #4
0
 public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
 {
     parent::__construct($defaults, $options, $CSRFSecret);
     $bootstrap_decorator = new sfWidgetFormSchemaFormatterBootstrap($this->getWidgetSchema(), $this->getValidatorSchema());
     $bootstrap_horizontal = new sfWidgetFormSchemaFormatterBootstrapHorizontal($this->getWidgetSchema(), $this->getValidatorSchema());
     $bootstrap_horizontal_short_label = new sfWidgetFormSchemaFormatterBootstrapHorizontalShortLabel($this->getWidgetSchema(), $this->getValidatorSchema());
     $this->getWidgetSchema()->addFormFormatter('bootstrap', $bootstrap_decorator);
     $this->getWidgetSchema()->addFormFormatter('bootstrap_horizontal', $bootstrap_horizontal);
     $this->getWidgetSchema()->addFormFormatter('bootstrap_horizontal_shortlabel', $bootstrap_horizontal_short_label);
     $this->setFormatter();
 }
Example #5
0
 public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
 {
     parent::__construct($defaults, $options, $CSRFSecret);
 }