public function getManifest($manifestDate, $useIntTime = false) {
		if($useIntTime) {
			// Convert to Date-Format for DHL
			$oldDate = $manifestDate;
			$manifestDate = date('Y-m-d', $manifestDate);

			if($manifestDate === false) {
				$this->addError('Could not convert given time() value "' . $oldDate . '" to YYYY-MM-DD... Called method: ' . __METHOD__);

				return false;
			}

			unset($oldDate);
		}

		switch($this->getMayor()) {
			case 1:
				trigger_error('[DHL-PHP-SDK]: Called Version 1 Method: ' . __METHOD__ . ' is incomplete (does nothing)!', E_USER_WARNING);
				$this->addError('Version 1 Method "' . __METHOD__ . '" is not implemented or removed!');

				return false;
			case 2:
			default:
				$data = $this->createGetManifestClass_v2($manifestDate);
		}

		try {
			$response = $this->sendGetManifestRequest($data);
		} catch(Exception $e) {
			$this->addError($e->getMessage());

			return false;
		}

		if(is_soap_fault($response)) {
			$this->addError($response->faultstring);

			return false;
		} else
			return new Response($this->getVersion(), $response);
	}
public function getManifest($manifestDate, $useIntTime = false) {
		if($useIntTime) {
			// Convert to Date-Format for DHL
			$oldDate = $manifestDate;
			$manifestDate = date('Y-m-d', $manifestDate);

			if($manifestDate === false) {
				$this->addError('Could not convert given time() value "' . $oldDate . '" to YYYY-MM-DD... Called method: ' . __METHOD__);

				return false;
			}

			unset($oldDate);
		}

		switch($this->getMayor()) {
			case 1:
				trigger_error('[DHL-PHP-SDK]: Called Version 1 Method: ' . __METHOD__ . ' is incomplete (does nothing)!', E_USER_WARNING);
				$this->addError('Version 1 Method "' . __METHOD__ . '" is not implemented or removed!');

				return false;
			case 2:
			default:
				$data = $this->createGetManifestClass_v2($manifestDate);
		}

		try {
			$response = $this->sendGetManifestRequest($data);
		} catch(Exception $e) {
			$this->addError($e->getMessage());

			return false;
		}

		if(is_soap_fault($response)) {
			$this->addError($response->faultstring);

			return false;
		} else
			return new Response($this->getVersion(), $response);
	}
public function getManifest ( $ manifestDate , $ useIntTime = false ) { if ( $ useIntTime ) { // Convert to Date-Format for DHL $ oldDate = $ manifestDate ; $ manifestDate = date ( 'Y-m-d' , $ manifestDate ) ; if ( $ manifestDate === false ) { $ this -> addError ( 'Could not convert given time() value "' . $ oldDate . '" to YYYY-MM-DD... Called method: ' . __METHOD__ ) ; return false ; } unset ( $ oldDate ) ; } switch ( $ this -> getMayor ( ) ) { case 1 : trigger_error ( '[DHL-PHP-SDK]: Called Version 1 Method: ' . __METHOD__ . ' is incomplete (does nothing)!' , E_USER_WARNING ) ; $ this -> addError ( 'Version 1 Method "' . __METHOD__ . '" is not implemented or removed!' ) ; return false ; case 2 : default : $ data = $ this -> createGetManifestClass_v2 ( $ manifestDate ) ; } try { $ response = $ this -> sendGetManifestRequest ( $ data ) ; } catch ( Exception $ e ) { $ this -> addError ( $ e -> getMessage ( ) ) ; return false ; } if ( is_soap_fault ( $ response ) ) { $ this -> addError ( $ response -> faultstring ) ; return false ; } else return new Response ( $ this -> getVersion ( ) , $ response ) ; }
Creates the getManifest-Request

@param string|int $manifestDate - Manifest-Date as String (YYYY-MM-DD) or the int time() value of the date
@param bool $useIntTime - Use the int Time Value instead of a String
@return bool|Response - false on error or DHL-Response Object
Creates the getManifest - Request