Exemple #1
0
 public function executeEntitiesWithOrgs($request)
 {
     $this->setResponseFormat(array('xml', 'json'));
     $options = $this->getParams(array('is_current', 'num', 'page'));
     $results = LsListApi::getEntitiesWithOrgs($this->list['id'], $options);
     $this->entities = LsApi::sliceArrayFromOptions($results, $options, $defaultNum = 100);
     $this->getResponse()->setSlot('total', count($results));
     return 'Xml';
 }
Exemple #2
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';
 }