Author: jablko
Date: Sun Oct 17 17:47:29 2010
New Revision: 8206
Log:
Cosmetic change
Modified:
trunk/apps/qubit/modules/relation/actions/editComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionsComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
Modified: trunk/apps/qubit/modules/relation/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/relation/actions/editComponent.class.php Sun Oct
17 17:40:46 2010 (r8205)
+++ trunk/apps/qubit/modules/relation/actions/editComponent.class.php Sun Oct
17 17:47:29 2010 (r8206)
@@ -32,8 +32,8 @@
break;
case 'description':
- $this->form->setValidator($name, new sfValidatorString);
- $this->form->setWidget($name, new sfWidgetFormTextarea);
+ $this->form->setValidator('description', new sfValidatorString);
+ $this->form->setWidget('description', new sfWidgetFormTextarea);
break;
}
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
Sun Oct 17 17:40:46 2010 (r8205)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedAuthorityRecordsComponent.class.php
Sun Oct 17 17:47:29 2010 (r8206)
@@ -33,8 +33,8 @@
switch ($name)
{
case 'object':
- $this->form->setValidator($name, new sfValidatorString);
- $this->form->setWidget($name, new sfWidgetFormInput);
+ $this->form->setValidator('object', new sfValidatorString);
+ $this->form->setWidget('object', new sfWidgetFormInput);
break;
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionsComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionsComponent.class.php
Sun Oct 17 17:40:46 2010 (r8205)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionsComponent.class.php
Sun Oct 17 17:47:29 2010 (r8206)
@@ -34,25 +34,22 @@
switch ($name)
{
case 'authorizedFormOfName':
- $choices = array();
-
- $this->form->setValidator($name, new sfValidatorString);
- $this->form->setWidget($name, new sfWidgetFormSelect(array('choices'
=> $choices)));
+ $this->form->setValidator('authorisedFormOfName', new
sfValidatorString);
+ $this->form->setWidget('authorizedFormOfName', new
sfWidgetFormSelect(array('choices' => array())));
break;
case 'category':
- $this->form->setValidator($name, new sfValidatorString);
+ $this->form->setValidator('category', new sfValidatorString);
$choices = array();
$choices[null] = null;
-
- foreach
(QubitTaxonomy::getTermsById(QubitTaxonomy::ISDF_RELATION_TYPE_ID) as $term)
+ foreach
(QubitTaxonomy::getTermsById(QubitTaxonomy::ISDF_RELATION_TYPE_ID) as $item)
{
- $choices[$this->context->routing->generate(null, array($term,
'module' => 'term'))] = $term;
+ $choices[$this->context->routing->generate(null, array($item,
'module' => 'term'))] = $item;
}
- $this->form->setWidget($name, new sfWidgetFormSelect(array('choices'
=> $choices)));
+ $this->form->setWidget('category', new
sfWidgetFormSelect(array('choices' => $choices)));
break;
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
Sun Oct 17 17:40:46 2010 (r8205)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedResourcesComponent.class.php
Sun Oct 17 17:47:29 2010 (r8206)
@@ -33,10 +33,8 @@
switch ($name)
{
case 'object':
- $choices = array();
-
- $this->form->setValidator($name, new sfValidatorString);
- $this->form->setWidget($name, new sfWidgetFormSelect(array('choices'
=> $choices)));
+ $this->form->setValidator('object', new sfValidatorString);
+ $this->form->setWidget('object', new
sfWidgetFormSelect(array('choices' => array())));
break;
--
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.