Author: sevein
Date: Sun Oct 10 11:12:46 2010
New Revision: 8049
Log:
Cosmetic change.
Modified:
trunk/lib/form/SettingsGenericForm.class.php
Modified: trunk/lib/form/SettingsGenericForm.class.php
==============================================================================
--- trunk/lib/form/SettingsGenericForm.class.php Sun Oct 10 11:05:11
2010 (r8048)
+++ trunk/lib/form/SettingsGenericForm.class.php Sun Oct 10 11:12:46
2010 (r8049)
@@ -34,47 +34,46 @@
$widgets[$setting->getName()] = new sfWidgetFormInput;
$validators[$setting->getName()] = new
sfValidatorString(array('required'=>$this->areFieldsRequired()));
}
-
+
// Set them
$this->setWidgets($widgets);
$this->setValidators($validators);
-
+
// Set decorator
$decorator = new QubitWidgetFormSchemaFormatterList($this->widgetSchema);
$this->widgetSchema->addFormFormatter('list', $decorator);
$this->widgetSchema->setFormFormatterName('list');
-
+
// Set wrapper text for global form settings
$this->widgetSchema->setNameFormat($this->getOption('scope').'[%s]');
}
-
+
public function setScope($scope)
{
$this->setOption('scope', $scope);
-
+
return $this;
}
-
+
public function getScope()
{
return $this->getOption('scope');
}
-
+
public function setSettings(array $settings)
{
$this->setOption('settings', $settings);
-
+
return $this;
}
-
+
public function getSettings()
{
return $this->getOption('settings');
}
-
+
public function areFieldsRequired()
{
return !(isset($this->options['fieldsRequired']) &&
$this->options['fieldsRequired'] === false);
}
-
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.