Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
RevisionDeleteQuery.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
49  class RevisionDeleteQuery extends \StructuredDynamics\osf\php\api\framework\WebServiceQuery
50  {
59  function __construct($network, $appID, $apiKey, $userID)
60  {
61  // Set the OSF network & credentials to use for this query.
62  $this->setNetwork($network);
63  $this->appID = $appID;
64  $this->apiKey = $apiKey;
65  $this->userID = $userID;
66 
67  // Set default configarations for this web service query
68  $this->setSupportedMimes(array("text/xml",
69  "application/json",
70  "application/rdf+xml",
71  "application/rdf+n3",
72  "application/iron+json",
73  "application/iron+csv"));
74 
75  $this->setMethodGet();
76 
77  $this->mime("resultset");
78 
79  $this->setEndpoint("revision/delete");
80 
81  // Set default parameters for this query
82  $this->sourceInterface("default");
83  }
84 
95  public function revisionUri($uri)
96  {
97  $this->params["revuri"] = urlencode($uri);
98 
99  return($this);
100  }
101 
112  public function dataset($dataset)
113  {
114  $this->params["dataset"] = urlencode($dataset);
115 
116  return($this);
117  }
118  }
119 
121 ?>
dataset($dataset)
Specifies the dataset URI where the record is indexed.
__construct($network, $appID, $apiKey, $userID)
Constructor.
revisionUri($uri)
Specifies the URI of the revision record to delete.
Revision Delete Query to a OSF Revision Delete web service endpoint.