public function getHash() {
		$mediaSalt = Configure::read('Imagine.salt');
		if (empty($mediaSalt)) {
			throw new InvalidArgumentException('Please configure Imagine.salt using Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')');
		}

		if (!empty($this->request->query)) {
			$params = $this->request->query;
			unset($params[$this->_config['hashField']]);
			ksort($params);
			return Security::hash(serialize($params) . $mediaSalt);
		}
		return false;
	}
public function getHash() {
		$mediaSalt = Configure::read('Imagine.salt');
		if (empty($mediaSalt)) {
			throw new InvalidArgumentException('Please configure Imagine.salt using Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')');
		}

		if (!empty($this->request->query)) {
			$params = $this->request->query;
			unset($params[$this->_config['hashField']]);
			ksort($params);
			return Security::hash(serialize($params) . $mediaSalt);
		}
		return false;
	}
public function getHash ( ) { $ mediaSalt = Configure :: read ( 'Imagine.salt' ) ; if ( empty ( $ mediaSalt ) ) { throw new InvalidArgumentException ( 'Please configure Imagine.salt using Configure::write(\'Imagine.salt\', \'YOUR-SALT-VALUE\')' ) ; } if ( ! empty ( $ this -> request -> query ) ) { $ params = $ this -> request -> query ; unset ( $ params [ $ this -> _config [ 'hashField' ] ] ) ; ksort ( $ params ) ; return Security :: hash ( serialize ( $ params ) . $ mediaSalt ) ; } return false ; }
Creates a hash based on the named params but ignores the hash field

The hash can also be used to determine if there is already a cached version
of the requested image that was processed with these params. How you do that
is up to you.

@throws InvalidArgumentException
@return mixed String if a hash could be retrieved, false if not
Creates a hash based on the named params but ignores the hash field