Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
GetClassesFunction.php
Go to the documentation of this file.
1 <?php
2 
5 
11 
20  class GetClassesFunction extends \StructuredDynamics\osf\php\api\framework\OntologyFunctionCall
21  {
22  function __construct()
23  {
24  // Default values
25  $this->getClassesUris();
26  }
27 
35  public function getClassesUris()
36  {
37  $this->params["mode"] = "uris";
38 
39  return($this);
40  }
41 
49  public function getClassesDescriptions()
50  {
51  $this->params["mode"] = "descriptions";
52 
53  return($this);
54  }
55 
65  public function limit($limit)
66  {
67  $this->params["limit"] = $limit;
68 
69  return($this);
70  }
71 
83  public function offset($offset)
84  {
85  $this->params["offset"] = $offset;
86 
87  return($this);
88  }
89  }
90 
92 ?>
getClassesDescriptions()
Get the list of classes description for the classes described in this ontology.
offset($offset)
Where the results to return starts in the complete list of results.
getClassesUris()
Get a list of URIs that refers to the classes described in this ontology.
Class used to define the parameters to use send a "getClasses" call to the Ontology: Read web service...
limit($limit)
The number of results the requester wants in the resultset.