public function validate($name)
	{
		$pattern = '/[\\\\\\' . implode('\\', $this->characterList) . ']/i';

		$depricatedCharacters = null;
		$fistDotMatch = null;
		$fistUnderscoreMatch = null;

		$depricatedCharacters = preg_match($pattern, $name, $depricatedCharacters);
		$fistDotMatch = preg_match('/^\./', $name, $fistDotMatch);
		$fistUnderscoreMatch = preg_match('/^\_/', $name, $fistUnderscoreMatch);

		if (( ! empty($depricatedCharacters))
				|| ( ! empty($fistDotMatch))
				|| ( ! empty($fistUnderscoreMatch))) 
		{
			return false;
		}

		return true;
	}
public function validate($name)
	{
		$pattern = '/[\\\\\\' . implode('\\', $this->characterList) . ']/i';

		$depricatedCharacters = null;
		$fistDotMatch = null;
		$fistUnderscoreMatch = null;

		$depricatedCharacters = preg_match($pattern, $name, $depricatedCharacters);
		$fistDotMatch = preg_match('/^\./', $name, $fistDotMatch);
		$fistUnderscoreMatch = preg_match('/^\_/', $name, $fistUnderscoreMatch);

		if (( ! empty($depricatedCharacters))
				|| ( ! empty($fistDotMatch))
				|| ( ! empty($fistUnderscoreMatch))) 
		{
			return false;
		}

		return true;
	}
public function validate ( $ name ) { $ pattern = '/[\\\\\\' . implode ( '\\' , $ this -> characterList ) . ']/i' ; $ depricatedCharacters = null ; $ fistDotMatch = null ; $ fistUnderscoreMatch = null ; $ depricatedCharacters = preg_match ( $ pattern , $ name , $ depricatedCharacters ) ; $ fistDotMatch = preg_match ( '/^\./' , $ name , $ fistDotMatch ) ; $ fistUnderscoreMatch = preg_match ( '/^\_/' , $ name , $ fistUnderscoreMatch ) ; if ( ( ! empty ( $ depricatedCharacters ) ) || ( ! empty ( $ fistDotMatch ) ) || ( ! empty ( $ fistUnderscoreMatch ) ) ) { return false ; } return true ; }
Validates file or folder name
@param $name
Validates file or folder name