getQuery()->getAll(); unset($queryParams['X-Amz-Signature']); if (empty($queryParams)) { return ''; } $qs = ''; ksort($queryParams); foreach ($queryParams as $key => $values) { if (is_array($values)) { sort($values); } elseif (!$values) { $values = array(''); } foreach ((array) $values as $value) { $qs .= rawurlencode($key) . '=' . rawurlencode($value) . '&'; } } return substr($qs, 0, -1); } /** * Provides the timestamp used for the class * * @param bool $refresh Set to TRUE to refresh the cached timestamp * * @return int */ protected function getTimestamp($refresh = false) { if (!$this->timestamp || $refresh) { $this->timestamp = time(); } return $this->timestamp; } /** * Get a date for one of the parts of the requests * * @param string $format Date format * * @return string */ protected function getDateTime($format) { return gmdate($format, $this->getTimestamp()); } }