original_string: public function createRequestArray(Client $client) {
  
  		$sourceArray = $this->getInputData();
  
  		if (!$sourceArray) {
  			return null;
  		}
  
  		$config = $client->getConfig();
  
  		/*
  		if (!array_key_exists('dttm', $sourceArray)) {
  			$sourceArray = array(
  					'dttm' => $this->getDTTM()
  				) + $sourceArray;
  		} elseif (!$sourceArray['dttm']) {
  			$sourceArray['dttm'] = $this->getDTTM();
  		}
  
  		if (!array_key_exists('extension', $sourceArray)) {
  			$sourceArray = array(
  				'extension' => $this->getExtensionId()
  			) + $sourceArray;
  		} elseif (!$sourceArray['extension']) {
  			$sourceArray['extension'] = $this->getExtensionId();
  		}*/
  
  		if (array_key_exists('dttm', $sourceArray) and !$sourceArray['dttm']) {
  			$sourceArray['dttm'] = $client->getDTTM();
  		}
  		if (array_key_exists('extension', $sourceArray) and !$sourceArray['extension']) {
  			$sourceArray['extension'] = $this->getExtensionId();
  		}
  
  		$baseString = $this->getRequestSignatureBase($sourceArray);
  		$client->writeToTraceLog('Signing request of extension ' . $this->extensionId . ', base string is:' . "\n" . $baseString);
  		$signature = Crypto::signString($baseString, $config->privateKeyFile, $config->privateKeyPassword);
  
  		$sourceArray['signature'] = $signature;
  
  		return $sourceArray;
  
  	}
code: public function createRequestArray(Client $client) {
  
  		$sourceArray = $this->getInputData();
  
  		if (!$sourceArray) {
  			return null;
  		}
  
  		$config = $client->getConfig();
  
  		/*
  		if (!array_key_exists('dttm', $sourceArray)) {
  			$sourceArray = array(
  					'dttm' => $this->getDTTM()
  				) + $sourceArray;
  		} elseif (!$sourceArray['dttm']) {
  			$sourceArray['dttm'] = $this->getDTTM();
  		}
  
  		if (!array_key_exists('extension', $sourceArray)) {
  			$sourceArray = array(
  				'extension' => $this->getExtensionId()
  			) + $sourceArray;
  		} elseif (!$sourceArray['extension']) {
  			$sourceArray['extension'] = $this->getExtensionId();
  		}*/
  
  		if (array_key_exists('dttm', $sourceArray) and !$sourceArray['dttm']) {
  			$sourceArray['dttm'] = $client->getDTTM();
  		}
  		if (array_key_exists('extension', $sourceArray) and !$sourceArray['extension']) {
  			$sourceArray['extension'] = $this->getExtensionId();
  		}
  
  		$baseString = $this->getRequestSignatureBase($sourceArray);
  		$client->writeToTraceLog('Signing request of extension ' . $this->extensionId . ', base string is:' . "\n" . $baseString);
  		$signature = Crypto::signString($baseString, $config->privateKeyFile, $config->privateKeyPassword);
  
  		$sourceArray['signature'] = $signature;
  
  		return $sourceArray;
  
  	}
code_tokens: public function createRequestArray ( Client $ client ) { $ sourceArray = $ this -> getInputData ( ) ; if ( ! $ sourceArray ) { return null ; } $ config = $ client -> getConfig ( ) ; /*
  		if (!array_key_exists('dttm', $sourceArray)) {
  			$sourceArray = array(
  					'dttm' => $this->getDTTM()
  				) + $sourceArray;
  		} elseif (!$sourceArray['dttm']) {
  			$sourceArray['dttm'] = $this->getDTTM();
  		}
  
  		if (!array_key_exists('extension', $sourceArray)) {
  			$sourceArray = array(
  				'extension' => $this->getExtensionId()
  			) + $sourceArray;
  		} elseif (!$sourceArray['extension']) {
  			$sourceArray['extension'] = $this->getExtensionId();
  		}*/ if ( array_key_exists ( 'dttm' , $ sourceArray ) and ! $ sourceArray [ 'dttm' ] ) { $ sourceArray [ 'dttm' ] = $ client -> getDTTM ( ) ; } if ( array_key_exists ( 'extension' , $ sourceArray ) and ! $ sourceArray [ 'extension' ] ) { $ sourceArray [ 'extension' ] = $ this -> getExtensionId ( ) ; } $ baseString = $ this -> getRequestSignatureBase ( $ sourceArray ) ; $ client -> writeToTraceLog ( 'Signing request of extension ' . $ this -> extensionId . ', base string is:' . "\n" . $ baseString ) ; $ signature = Crypto :: signString ( $ baseString , $ config -> privateKeyFile , $ config -> privateKeyPassword ) ; $ sourceArray [ 'signature' ] = $ signature ; return $ sourceArray ; }
docstring: Creates array for request.
  
  If requests for your extension are signed incorrectly because of
  wrong order of parts of the base string, check that order of keys in
  your input data given to setInputData() is the same as in extension's documentation on CSOB wiki,
  or extend this class and reimplement getRequestSignatureBase() method.
  
  @param Client $client
  
  @return array
docstring_tokens: Creates array for request .