Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
AuthRegistrarGroupQuery.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
57  class AuthRegistrarGroupQuery extends \StructuredDynamics\osf\php\api\framework\WebServiceQuery
58  {
67  function __construct($network, $appID, $apiKey, $userID)
68  {
69  // Set the OSF network & credentials to use for this query.
70  $this->setNetwork($network);
71  $this->appID = $appID;
72  $this->apiKey = $apiKey;
73  $this->userID = $userID;
74 
75  // Set default configarations for this web service query
76  $this->setSupportedMimes(array("text/xml",
77  "application/json",
78  "application/rdf+xml",
79  "application/rdf+n3",
80  "application/iron+json",
81  "application/iron+csv"));
82 
83  $this->setMethodGet();
84 
85  $this->mime("resultset");
86 
87  $this->setEndpoint("auth/registrar/group/");
88 
89  // Set default parameters for this query
90  $this->sourceInterface("default");
91  }
92 
104  public function group($uri)
105  {
106  $this->params["group_uri"] = urlencode($uri);
107 
108  return($this);
109  }
110 
122  public function application($id)
123  {
124  $this->params["app_id"] = urlencode($id);
125 
126  return($this);
127  }
128 
138  public function createGroup()
139  {
140  $this->params["action"] = 'create';
141 
142  return($this);
143  }
144 
154  public function deleteGroup()
155  {
156  $this->params["action"] = 'delete';
157 
158  return($this);
159  }
160  }
161 
163 ?>
application($id)
Sepcifies the Application ID where the group should be created.
Auth Registrar Group Query to a OSF Auth Registrar Group web service endpoint.