Author: jablko
Date: Sun Oct 24 15:26:48 2010
New Revision: 8446
Log:
Drop intermediate variables
Modified:
trunk/apps/qubit/modules/term/actions/indexAction.class.php
trunk/apps/qubit/modules/term/templates/indexSuccess.php
Modified: trunk/apps/qubit/modules/term/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/indexAction.class.php Sun Oct 24
15:24:24 2010 (r8445)
+++ trunk/apps/qubit/modules/term/actions/indexAction.class.php Sun Oct 24
15:26:48 2010 (r8446)
@@ -60,10 +60,6 @@
}
}
- $this->children = $this->resource->getChildren(array('sortBy' => 'name'));
-
- $this->associateRelations =
QubitRelation::getBySubjectOrObjectId($this->resource->id, array('typeId' =>
QubitTerm::TERM_RELATION_ASSOCIATIVE_ID));
-
QubitTreeView::addAssets($this->response);
}
}
Modified: trunk/apps/qubit/modules/term/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/indexSuccess.php Sun Oct 24
15:24:24 2010 (r8445)
+++ trunk/apps/qubit/modules/term/templates/indexSuccess.php Sun Oct 24
15:26:48 2010 (r8446)
@@ -61,7 +61,7 @@
<h3><?php echo render_title($resource) ?></h3>
<div>
<ul>
- <?php foreach ($children as $item): ?>
+ <?php foreach ($resource->getChildren(array('sortBy' => 'name')) as
$item): ?>
<li><?php echo __('NT %1%', array('%1%' =>
link_to(render_title($item), array($item, 'module' => 'term')))) ?></li>
<?php endforeach; ?>
</ul>
@@ -97,7 +97,7 @@
<h3><?php echo render_title($resource) ?></h3>
<div>
<ul>
- <?php foreach ($associateRelations as $item): ?>
+ <?php foreach (QubitRelation::getBySubjectOrObjectId($resource->id,
array('typeId' => QubitTerm::TERM_RELATION_ASSOCIATIVE_ID)) as $item): ?>
<li><?php echo __('RT %1%', array('%1%' =>
link_to(render_title($item->getOpposedObject($resource->id)),
array($item->getOpposedObject($resource->id), 'module' => 'term')))) ?></li>
<?php endforeach; ?>
</ul>
--
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.