Exemplo n.º 1
0
 public function removeSite(Site $site)
 {
     $workflow = new Workflow('remove_organization_site_membership', 'organizations', $this);
     $workflow->setParams(array('site_id' => $site->getId()));
     $workflow->setMethod("POST");
     $workflow->start();
     $workflow->wait();
     return $workflow;
 }
Exemplo n.º 2
0
 public function removeSite(Site $site)
 {
     $workflow = $this->workflows->create('remove_organization_site_membership', array('params' => array('site_id' => $site->getId())));
     $workflow->wait();
     return $workflow;
 }