ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Filesystem\Util\FilenameSanitizing Class Reference
+ Inheritance diagram for ILIAS\Filesystem\Util\FilenameSanitizing:
+ Collaboration diagram for ILIAS\Filesystem\Util\FilenameSanitizing:

Public Member Functions

 testSanitize (string $filename, string $expected)
 

Static Public Member Functions

static provideFilenames ()
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 28 of file FilenameSanitizing.php.

Member Function Documentation

◆ provideFilenames()

static ILIAS\Filesystem\Util\FilenameSanitizing::provideFilenames ( )
static

Definition at line 30 of file FilenameSanitizing.php.

30 : \Iterator
31 {
32 yield ["Control\u{00a0}Character", 'ControlCharacter'];
33 yield ["Soft\u{00ad}Hyphen", 'SoftHyphen'];
34 yield ["No\u{0083}Break", 'NoBreak'];
35 yield ["ZeroWidth\u{200C}NonJoiner", 'ZeroWidthNonJoiner'];
36 yield ["ZeroWidth\u{200d}Joiner", 'ZeroWidthJoiner'];
37 yield ["Invisible\u{2062}Times", 'InvisibleTimes'];
38 yield ["Invisible\u{2063}Comma", 'InvisibleComma'];
39 yield ["Funky\u{200B}Whitespace", 'FunkyWhitespace'];
40 }

◆ testSanitize()

ILIAS\Filesystem\Util\FilenameSanitizing::testSanitize ( string  $filename,
string  $expected 
)

Definition at line 43 of file FilenameSanitizing.php.

43 : void
44 {
45 $this->assertSame($expected, Util::sanitizeFilename($filename));
46 }
$filename
Definition: buildRTE.php:78

References $filename.


The documentation for this class was generated from the following file: