Beispiel #1
0
 /**
  * tries to use the type to get a typed object. If not possible, return a stdClass, 
  * with the explicit type marker set if the type was not just an empty string
  * @param type $typeIdentifier
  * @return stdClass or typed object 
  */
 protected function resolveType($typeIdentifier)
 {
     if ($typeIdentifier != '') {
         if ($this->voConverter) {
             $obj = $this->voConverter->getNewVoInstance($typeIdentifier);
         } else {
             $obj = new stdClass();
             $explicitTypeField = Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE;
             $obj->{$explicitTypeField} = $typeIdentifier;
         }
     } else {
         $obj = new stdClass();
     }
     return $obj;
 }