public function TripalDocService_v0_1::__construct
3.x TripalDocService_v0_1.inc | public TripalDocService_v0_1::__construct($base_path) |
Constructor for the TripalDocService_v0_1 class.
Overrides TripalWebService::__construct
File
- tripal_ws/
includes/ TripalWebService/ TripalDocService_v0_1.inc, line 29
Class
Code
public function __construct($base_path) {
parent::__construct($base_path);
// Get the list of services provided by this Tripal site.
$this->services = tripal_get_web_services();
foreach ($this->services as $sindex => $service_class) {
// Load the class code.
tripal_load_include_web_service_class($service_class);
// Remove this class from the list of services.
if ($service_class::$type == 'vocab') {
unset($this->services[$sindex]);
}
}
}