private function loadResponse_v2($response) {
		// Set global Status-Values first
		if(isset($response->Status)) {
			if(isset($response->Status->statusCode))
				$this->setStatusCode((int) $response->Status->statusCode);
			if(isset($response->Status->statusText)) {
				if(is_array($response->Status->statusText))
					$this->setStatusText(implode(';', $response->Status->statusText));
				else
					$this->setStatusText($response->Status->statusText);
			}
			if(isset($response->Status->statusMessage)) {
				if(is_array($response->Status->statusMessage))
					$this->setStatusMessage(implode(';', $response->Status->statusMessage));
				else
					$this->setStatusMessage($response->Status->statusMessage);
			}
		}

		// Set Manifest if exists (getManifest)
		if(isset($response->manifestData)) {
			$this->setManifestData($response->manifestData);

			return;
		}

		/*
		 * Handle Shipment(s) | Calls on:
		 * 1 -> createShipmentOrder
		 * 2 -> deleteShipmentOrder
		 * 3 -> updateShipmentOrder [Only Single]
		 * 3 -> getLabel
		 * 4 -> validateShipment
		 * 5 -> getExportDoc
		 * 6 -> doManifest
		 */
		if(isset($response->CreationState)) // 1
			$this->handleMultiShipments($response->CreationState);
		else if(isset($response->DeletionState)) // 2
			$this->handleMultiShipments($response->DeletionState);
		else if(isset($response->LabelData)) // 3
			$this->handleMultiShipments($response->LabelData);
		else if(isset($response->ValidationState)) // 4
			$this->handleMultiShipments($response->ValidationState);
		else if(isset($response->ExportDocData)) // 5
			$this->handleMultiShipments($response->ExportDocData);
		else if(isset($response->ManifestState)) // 6
			$this->handleMultiShipments($response->ManifestState);

		// Validate the status to fix errors on the Main-Status and show weak-warnings
		if($this->getStatusCode() !== self::DHL_ERROR_NOT_SET)
			$this->validateStatusCode();
	}
private function loadResponse_v2($response) {
		// Set global Status-Values first
		if(isset($response->Status)) {
			if(isset($response->Status->statusCode))
				$this->setStatusCode((int) $response->Status->statusCode);
			if(isset($response->Status->statusText)) {
				if(is_array($response->Status->statusText))
					$this->setStatusText(implode(';', $response->Status->statusText));
				else
					$this->setStatusText($response->Status->statusText);
			}
			if(isset($response->Status->statusMessage)) {
				if(is_array($response->Status->statusMessage))
					$this->setStatusMessage(implode(';', $response->Status->statusMessage));
				else
					$this->setStatusMessage($response->Status->statusMessage);
			}
		}

		// Set Manifest if exists (getManifest)
		if(isset($response->manifestData)) {
			$this->setManifestData($response->manifestData);

			return;
		}

		/*
		 * Handle Shipment(s) | Calls on:
		 * 1 -> createShipmentOrder
		 * 2 -> deleteShipmentOrder
		 * 3 -> updateShipmentOrder [Only Single]
		 * 3 -> getLabel
		 * 4 -> validateShipment
		 * 5 -> getExportDoc
		 * 6 -> doManifest
		 */
		if(isset($response->CreationState)) // 1
			$this->handleMultiShipments($response->CreationState);
		else if(isset($response->DeletionState)) // 2
			$this->handleMultiShipments($response->DeletionState);
		else if(isset($response->LabelData)) // 3
			$this->handleMultiShipments($response->LabelData);
		else if(isset($response->ValidationState)) // 4
			$this->handleMultiShipments($response->ValidationState);
		else if(isset($response->ExportDocData)) // 5
			$this->handleMultiShipments($response->ExportDocData);
		else if(isset($response->ManifestState)) // 6
			$this->handleMultiShipments($response->ManifestState);

		// Validate the status to fix errors on the Main-Status and show weak-warnings
		if($this->getStatusCode() !== self::DHL_ERROR_NOT_SET)
			$this->validateStatusCode();
	}
private function loadResponse_v2 ( $ response ) { // Set global Status-Values first if ( isset ( $ response -> Status ) ) { if ( isset ( $ response -> Status -> statusCode ) ) $ this -> setStatusCode ( ( int ) $ response -> Status -> statusCode ) ; if ( isset ( $ response -> Status -> statusText ) ) { if ( is_array ( $ response -> Status -> statusText ) ) $ this -> setStatusText ( implode ( ';' , $ response -> Status -> statusText ) ) ; else $ this -> setStatusText ( $ response -> Status -> statusText ) ; } if ( isset ( $ response -> Status -> statusMessage ) ) { if ( is_array ( $ response -> Status -> statusMessage ) ) $ this -> setStatusMessage ( implode ( ';' , $ response -> Status -> statusMessage ) ) ; else $ this -> setStatusMessage ( $ response -> Status -> statusMessage ) ; } } // Set Manifest if exists (getManifest) if ( isset ( $ response -> manifestData ) ) { $ this -> setManifestData ( $ response -> manifestData ) ; return ; } /*
		 * Handle Shipment(s) | Calls on:
		 * 1 -> createShipmentOrder
		 * 2 -> deleteShipmentOrder
		 * 3 -> updateShipmentOrder [Only Single]
		 * 3 -> getLabel
		 * 4 -> validateShipment
		 * 5 -> getExportDoc
		 * 6 -> doManifest
		 */ if ( isset ( $ response -> CreationState ) ) // 1 $ this -> handleMultiShipments ( $ response -> CreationState ) ; else if ( isset ( $ response -> DeletionState ) ) // 2 $ this -> handleMultiShipments ( $ response -> DeletionState ) ; else if ( isset ( $ response -> LabelData ) ) // 3 $ this -> handleMultiShipments ( $ response -> LabelData ) ; else if ( isset ( $ response -> ValidationState ) ) // 4 $ this -> handleMultiShipments ( $ response -> ValidationState ) ; else if ( isset ( $ response -> ExportDocData ) ) // 5 $ this -> handleMultiShipments ( $ response -> ExportDocData ) ; else if ( isset ( $ response -> ManifestState ) ) // 6 $ this -> handleMultiShipments ( $ response -> ManifestState ) ; // Validate the status to fix errors on the Main-Status and show weak-warnings if ( $ this -> getStatusCode ( ) !== self :: DHL_ERROR_NOT_SET ) $ this -> validateStatusCode ( ) ; }
Loads a DHL-Response into this Object

@param Object $response - DHL-Response
Loads a DHL - Response into this Object