Пример #1
0
 public function executeOrgs($request)
 {
     $options = $this->getParams(array('is_current', 'type'));
     //respond with 400 Bad Request if entity isn't a person
     if ($this->entity['primary_type'] != 'Person') {
         $this->returnStatusCode(400, "Can't retrieve orgs; requested entity is an org.");
     }
     $this->entities = EntityApi::getOrgs($this->entity['id'], $options);
     return 'Xml';
 }