3 declare(strict_types=1);
23 protected function isDAVableObjTitle(
string $title): bool
25 if ($this->hasTitleForbiddenChars($title) || $this->isHiddenFile($title)) {
32 protected function hasTitleForbiddenChars(
string $title): bool
34 foreach (str_split(
'\\<>/:*?"|#') as $forbidden_character) {
35 if (strpos($title, $forbidden_character) !==
false) {
43 protected function isHiddenFile(
string $title): bool
45 $prefix = substr($title, 0, 1);
46 return $prefix ===
'.';
49 protected function hasValidFileExtension(
string $title): bool
static getValidFilename(string $a_filename)