public function getMediaType($revision = null)
	{
		// Without revision, use current info
		if (!isset($revision)) {
			return $this->info['mediatype'];
		}

		// Obtain the properties of the revision
		if (($info = $this->getRevision($revision)) === null) {
			return null;
		}

		return $info['mediatype'];
	}
public function getMediaType($revision = null)
	{
		// Without revision, use current info
		if (!isset($revision)) {
			return $this->info['mediatype'];
		}

		// Obtain the properties of the revision
		if (($info = $this->getRevision($revision)) === null) {
			return null;
		}

		return $info['mediatype'];
	}
public function getMediaType ( $ revision = null ) { // Without revision, use current info if ( ! isset ( $ revision ) ) { return $ this -> info [ 'mediatype' ] ; } // Obtain the properties of the revision if ( ( $ info = $ this -> getRevision ( $ revision ) ) === null ) { return null ; } return $ info [ 'mediatype' ] ; }
Returns the media type of this file,
or of its specified revision.

@param   mixed  $revision  The index or timestamp of the revision (optional)
@return  mixed             The media type of this file (string),
or null if revision not found
Returns the media type of this file or of its specified revision .