Cache
2 years ago
DBPermissions.php
2 years ago
DataEncoder.php
2 years ago
Escape.php
2 years ago
Glob.php
2 years ago
Hooks.php
2 years ago
Math.php
2 years ago
PluginInfo.php
2 years ago
Sanitize.php
2 years ago
ServerVars.php
2 years ago
SlashMode.php
5 years ago
Strings.php
2 years ago
Times.php
2 years ago
Urls.php
2 years ago
Version.php
2 years ago
WpDefaultDirectories.php
2 years ago
SlashMode.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | // TODO PHP7.x; declare(strict_types=1); |
| 4 | namespace WPStaging\Framework\Utils; |
| 5 | |
| 6 | // TODO PHP7.1; constant visibility |
| 7 | /** |
| 8 | * This class is mainly used as a enum to provide SLASH MODE |
| 9 | */ |
| 10 | class SlashMode |
| 11 | { |
| 12 | /** |
| 13 | * Make path have no leading and trailing slashes |
| 14 | * @var int |
| 15 | */ |
| 16 | const NO_SLASH = 0; |
| 17 | |
| 18 | /** |
| 19 | * Make path have only leading slash but no trailing slash |
| 20 | * @var int |
| 21 | */ |
| 22 | const LEADING_SLASH = -1; |
| 23 | |
| 24 | /** |
| 25 | * Make path have only trailing slash but no leading slash |
| 26 | * @var int |
| 27 | */ |
| 28 | const TRAILING_SLASH = 1; |
| 29 | |
| 30 | /** |
| 31 | * Make path have both slashes i.e. trailing slash and leading slash |
| 32 | * @var int |
| 33 | */ |
| 34 | const BOTH_SLASHES = 2; |
| 35 | } |
| 36 |