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