Author: jablko
Date: Mon Oct 25 13:45:45 2010
New Revision: 8480
Log:
Cosmetic change
Modified:
trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php
trunk/apps/qubit/modules/term/actions/treeViewAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php
Mon Oct 25 13:41:47 2010 (r8479)
+++ trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php
Mon Oct 25 13:45:45 2010 (r8480)
@@ -25,18 +25,6 @@
$this->resource = $this->getRoute()->resource;
- $options = array();
-
- if (isset($request->limit))
- {
- $options['limit'] = $request->limit;
- }
-
- if (isset($request->offset))
- {
- $options['offset'] = $request->offset;
- }
-
- return
$this->renderText(json_encode($this->resource->getChildYuiNodes($options)));
+ return
$this->renderText(json_encode($this->resource->getChildYuiNodes($request)));
}
}
Modified: trunk/apps/qubit/modules/term/actions/treeViewAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/treeViewAction.class.php Mon Oct
25 13:41:47 2010 (r8479)
+++ trunk/apps/qubit/modules/term/actions/treeViewAction.class.php Mon Oct
25 13:45:45 2010 (r8480)
@@ -23,21 +23,8 @@
{
$this->response->setHttpHeader('Content-Type', 'application/json;
charset=utf-8');
- $this->resource = QubitTerm::getById($request->id);
+ $this->resource = $this->getRoute()->resource;
- $options = array();
- if (isset($request->limit))
- {
- $options['limit'] = $request->limit;
- }
-
- if (isset($request->offset))
- {
- $options['offset'] = $request->offset;
- }
-
- $treeViewObjects = $this->resource->getChildYuiNodes($options);
-
- return $this->renderText(json_encode($treeViewObjects));
+ return
$this->renderText(json_encode($this->resource->getChildYuiNodes($request)));
}
}
--
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.