public function TripalWebService::__construct
3.x TripalWebService.inc | public TripalWebService::__construct($base_path) |
Implements the constructor.
2 calls to TripalWebService::__construct()
- TripalContentService_v0_1::__construct in tripal_ws/
includes/ TripalWebService/ TripalContentService_v0_1.inc - Implements the constructor
- TripalDocService_v0_1::__construct in tripal_ws/
includes/ TripalWebService/ TripalDocService_v0_1.inc - Constructor for the TripalDocService_v0_1 class.
2 methods override TripalWebService::__construct()
- TripalContentService_v0_1::__construct in tripal_ws/
includes/ TripalWebService/ TripalContentService_v0_1.inc - Implements the constructor
- TripalDocService_v0_1::__construct in tripal_ws/
includes/ TripalWebService/ TripalDocService_v0_1.inc - Constructor for the TripalDocService_v0_1 class.
File
- tripal_ws/
includes/ TripalWebService.inc, line 70
Class
Code
public function __construct($base_path) {
if (!$base_path) {
throw new Exception('Please provide a $base_path argument when creating a new TripalWebService.');
}
// Create a default resource so that the service always some something.
$this->resource = new TripalWebServiceResource($base_path);
// Intialize the private members variables.
$this->path = array();
$this->params = array();
$this->base_path = $base_path;
$this->documentation = array();
$this->addDocClass(array(
"id" => "http://www.w3.org/ns/hydra/core#Resource",
"term" => 'hydra:Resource',
"title" => "Resource",
'subClassOf' => NULL,
));
}