Author: david
Date: Wed Nov 18 13:45:04 2009
New Revision: 3913
Log:
Get function type drop-down options from 'Functions' taxonomy.
Modified:
trunk/apps/qubit/modules/function/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/function/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/function/actions/editAction.class.php Wed Nov
18 13:43:12 2009 (r3912)
+++ trunk/apps/qubit/modules/function/actions/editAction.class.php Wed Nov
18 13:45:04 2009 (r3913)
@@ -78,21 +78,10 @@
$choices = array();
$choices[null] = null;
- /*
- foreach
(QubitTaxonomy::getTermsById(QubitTaxonomy::DESCRIPTION_STATUS_ID) as $term)
+ foreach (QubitTaxonomy::getTermsById(QubitTaxonomy::FUNCTION_ID) as
$term)
{
$choices[$this->context->routing->generate(null, array('module' =>
'term', 'action' => 'show', 'id' => $term->id))] = $term;
}
- */
-
- // TODO add "Function types" qubit term constants
- $choices = array(
- 'Subfunction' => 'Subfunction',
- 'Business process' => 'Business process',
- 'Activity' => 'Activity',
- 'Task' => 'Task',
- 'Transaction' => 'Transaction'
- );
$this->form->setWidget('type', new sfWidgetFormSelect(array('choices'
=> $choices)));
--
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=.