Beispiel #1
0
 /**
  * Once the proxy has been constructed the runtime passes in
  * the information associated with the reference that the proxy
  * represents
  *
  * @param SCA_ReferenceType $reference_type Reference type
  *
  * @return null
  */
 public function addReferenceType(SCA_ReferenceType $reference_type)
 {
     $this->reference_type = $reference_type;
     // If there are type descriptions create and XML DAS and add them
     if (count($reference_type->getTypes()) > 0) {
         // Some XSD types are specified with the reference
         // annotation so use these XSDs to build the XML DAS
         $this->xml_das = $reference_type->getXmlDas();
         // get the list of types that have been loaded into
         // the XML DAS
         $this->type_list = SCA_Helper::getAllXmlDasTypes($this->xml_das);
     } else {
         // No XSDs are specified so we assume that XML strings
         // are passed in instead of SDOs
     }
 }
Beispiel #2
0
 /**
  * TODO - We need to think about where to put this method
  *
  * @param SCA_ReferenceType $reference_type Reference Type
  *
  * @return null
  */
 public function addReferenceType(SCA_ReferenceType $reference_type)
 {
     SCA::$logger->log("Entering");
     $this->reference_type = $reference_type;
     // Add type descriptions to the XML DAS. We use XSDs if they
     // are prvoided.
     if (count($reference_type->getTypes()) > 0) {
         // Some XSD types are specified with the reference
         // annotation so use these XSDs to build the XMLDAS
         $this->xmldas = $reference_type->getXmlDas();
         // get the list of types that have been loaded into
         // the XMLDAS in this case
         $this->type_list = SCA_Helper::getAllXmlDasTypes($this->xmldas);
     } else {
         //TODO: This is where we end up if we don't specify @types on a client side atom component with an @reference!
         //TODO: refactor this and check routes to this part of the code result in proper response
         $this->xmldas = SDO_DAS_XML::create(dirname(__FILE__) . '/Atom1.0.xsd');
     }
 }