public function executeRelationships($request) { $options = $this->getParams(array('cat_ids', 'order', 'num', 'page')); //get full results, then limit $results = EntityApi::getRelationships($this->entity['id'], $options); $this->rels = LsApi::sliceArrayFromOptions($results, $options, $defaultNum = null, $maxNum = null); $this->getResponse()->setSlot('total', count($results)); return 'Xml'; }