Exemplo n.º 1
0
 /**
  * Give the URL for collection data fetching
  *
  * @return string URL to use in fetch query
  */
 protected function getFetchUrl()
 {
     $url = 'sites/' . $this->site->get('id') . '/memberships/users';
     return $url;
 }
 /**
  * Adds a site to this organization
  *
  * @param Site $site Site object of site to add to this organization
  * @return Workflow
  */
 public function addMember(Site $site)
 {
     $workflow = $this->organization->workflows->create('add_organization_site_membership', array('params' => array('site_id' => $site->get('id'), 'role' => 'team_member')));
     return $workflow;
 }