public function mimeAccepted($mime, $mimes = array(), $empty = true) {
		$mimes = !empty($mimes) ? $mimes : $this->onlyMimes;
		if (empty($mimes)) {
			return $empty;
		}
		return $mime == 'directory'
			|| in_array('all', $mimes)
			|| in_array('All', $mimes)
			|| in_array($mime, $mimes)
			|| in_array(substr($mime, 0, strpos($mime, '/')), $mimes);
	}
public function mimeAccepted($mime, $mimes = array(), $empty = true) {
		$mimes = !empty($mimes) ? $mimes : $this->onlyMimes;
		if (empty($mimes)) {
			return $empty;
		}
		return $mime == 'directory'
			|| in_array('all', $mimes)
			|| in_array('All', $mimes)
			|| in_array($mime, $mimes)
			|| in_array(substr($mime, 0, strpos($mime, '/')), $mimes);
	}
public function mimeAccepted ( $ mime , $ mimes = array ( ) , $ empty = true ) { $ mimes = ! empty ( $ mimes ) ? $ mimes : $ this -> onlyMimes ; if ( empty ( $ mimes ) ) { return $ empty ; } return $ mime == 'directory' || in_array ( 'all' , $ mimes ) || in_array ( 'All' , $ mimes ) || in_array ( $ mime , $ mimes ) || in_array ( substr ( $ mime , 0 , strpos ( $ mime , '/' ) ) , $ mimes ) ; }
Return true if mime is required mimes list

@param  string     $mime   mime type to check
@param  array      $mimes  allowed mime types list or not set to use client mimes list
@param  bool|null  $empty  what to return on empty list
@return bool|null
@author Dmitry (dio) Levashov
@author Troex Nevelin
Return true if mime is required mimes list