/** * Constructor * Initialize the files */ public function __construct() { parent::__construct(); if (!file_exists($this->xslFile)) { throw new Exception("Unable to found the xsl file {$this->xslFile}"); } file_put_contents($this->outputFile, ''); }
/** * Constructor: init api connection and the ref API resources */ public function __construct() { parent::__construct(); //initialize ref to API classes and properties $this->rdfLiteralClass = new core_kernel_classes_Class(RDFS_LITERAL); $this->processInstanceClass = new core_kernel_classes_Class(CLASS_PROCESSINSTANCES); $this->serviceDefClass = new core_kernel_classes_Class(CLASS_SUPPORTSERVICES); $this->serviceUrlProp = new core_kernel_classes_Property(PROPERTY_SUPPORTSERVICES_URL); $this->serviceFormalParamInProp = new core_kernel_classes_Property(PROPERTY_SERVICESDEFINITION_FORMALPARAMIN); $this->processVarClass = new core_kernel_classes_Class(CLASS_PROCESSVARIABLES); $this->processVarCodeProp = new core_kernel_classes_Property(PROPERTY_PROCESSVARIABLES_CODE); $this->formalParamClass = new core_kernel_classes_Class(CLASS_FORMALPARAMETER); $this->formalParamNameProp = new core_kernel_classes_Property(PROPERTY_FORMALPARAMETER_NAME); $this->formalParamDefProcessVarProp = new core_kernel_classes_Property(PROPERTY_FORMALPARAMETER_DEFAULTPROCESSVARIABLE); $this->formalParamDefConstantProp = new core_kernel_classes_Property(PROPERTY_FORMALPARAMETER_DEFAULTCONSTANTVALUE); }