public function imageVersion($version, $options = []) {
		$options['version'] = $version;
		$options['image'] = $this;
		$options['hash'] = Configure::read('FileStorage.imageHashes.' . $this->_properties['model'] . '.' . $version);

		if (empty($options['hash'])) {
			throw new InvalidArgumentException(sprintf('No valid version key (Identifier: `%s` Key: `%s`) passed!', $this->get('model'), $version));
		}

		$event = $this->dispatchEvent('ImageVersion.getVersions', $options);

		return $event->getResult();
	}
public function imageVersion($version, $options = []) {
		$options['version'] = $version;
		$options['image'] = $this;
		$options['hash'] = Configure::read('FileStorage.imageHashes.' . $this->_properties['model'] . '.' . $version);

		if (empty($options['hash'])) {
			throw new InvalidArgumentException(sprintf('No valid version key (Identifier: `%s` Key: `%s`) passed!', $this->get('model'), $version));
		}

		$event = $this->dispatchEvent('ImageVersion.getVersions', $options);

		return $event->getResult();
	}
public function imageVersion ( $ version , $ options = [ ] ) { $ options [ 'version' ] = $ version ; $ options [ 'image' ] = $ this ; $ options [ 'hash' ] = Configure :: read ( 'FileStorage.imageHashes.' . $ this -> _properties [ 'model' ] . '.' . $ version ) ; if ( empty ( $ options [ 'hash' ] ) ) { throw new InvalidArgumentException ( sprintf ( 'No valid version key (Identifier: `%s` Key: `%s`) passed!' , $ this -> get ( 'model' ) , $ version ) ) ; } $ event = $ this -> dispatchEvent ( 'ImageVersion.getVersions' , $ options ) ; return $ event -> getResult ( ) ; }
Gets the version of an image.

@param string
@param array $options
@return string
Gets the version of an image .