Ejemplo n.º 1
0
 public function executeLeadershipDegree2($request)
 {
     //respond with 400 Bad Request if entity isn't an org
     if ($this->entity['primary_type'] != 'Org') {
         $this->returnStatusCode(400, "Can't retrieve leadership and their orgs; requested entity is a person.");
     }
     $options = $this->getParams(array('num', 'page', 'is_current'));
     $this->entities = EntityApi::getLeadershipWithOrgs($this->entity['id'], $options);
     return 'Xml';
 }