Esempio n. 1
0
 public function executeEntitiesWithOrgs($request)
 {
     $options = $this->getParams(array('q', 'type_ids', 'num', 'page', 'is_current'));
     $result = SearchApi::getEntities($options);
     $this->entities = array();
     if ($result['total_found'] > 0 && isset($result['matches'])) {
         $ids = array_keys($result['matches']);
         $this->entities = BatchApi::getTheyRulePersons($ids, $options);
     }
     $this->getResponse()->setSlot('total', $result['total_found']);
     return 'Xml';
 }