Author: jablko
Date: Sun Oct 17 18:54:17 2010
New Revision: 8212
Log:
Generally use data model identifier for parameter names
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Sun Oct 17 18:52:05 2010 (r8211)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Sun Oct 17 18:54:17 2010 (r8212)
@@ -23,7 +23,7 @@
public static
$NAMES = array(
'authorizedFormOfName',
- 'category',
+ 'type',
'description',
'startDate',
'endDate',
@@ -39,8 +39,8 @@
break;
- case 'category':
- $this->form->setValidator('category', new sfValidatorString);
+ case 'type':
+ $this->form->setValidator('type', new sfValidatorString);
$choices = array();
$choices[null] = null;
@@ -49,7 +49,7 @@
$choices[$this->context->routing->generate(null, array($item,
'module' => 'term'))] = $item;
}
- $this->form->setWidget('category', new
sfWidgetFormSelect(array('choices' => $choices)));
+ $this->form->setWidget('type', new sfWidgetFormSelect(array('choices'
=> $choices)));
break;
@@ -105,7 +105,7 @@
}
// Set category (typeId)
- $params =
$this->context->routing->parse(Qubit::pathInfo($relationData['category']));
+ $params =
$this->context->routing->parse(Qubit::pathInfo($relationData['type']));
$typeId = (isset($params['id'])) ? $params['id'] : null;
$relation->typeId = $typeId;
--
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.