-
Notifications
You must be signed in to change notification settings - Fork 645
/
Copy pathFsTrait.php
63 lines (54 loc) · 1.39 KB
/
FsTrait.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\base;
/**
* FsTrait implements the common methods and properties for filesystem classes.
*
* @author Pixel & Tonic, Inc. <[email protected]>
* @since 4.0.0
*/
trait FsTrait
{
/**
* @var bool Whether the “Files in this filesystem have public URLs” setting should be shown.
* @since 4.5.0
*/
protected static bool $showHasUrlSetting = true;
/**
* @var bool Whether the “Base URL” setting should be shown.
*
* If this is `false`, and the filesystem has a base URL, [[getRootUrl()]] should be implemented directly,
* rather than storing the base URL on the [[\craft\base\Fs::$url]] property.
*
* @since 4.5.0
*/
protected static bool $showUrlSetting = true;
/**
* @var string|null Name
*/
public ?string $name = null;
/**
* @var string|null Handle
*/
public ?string $handle = null;
/**
* @var string|null Old handle
*/
public ?string $oldHandle = null;
/**
* @var bool Whether the volume has a public URL
*/
public bool $hasUrls = false;
/**
* @var string|null The volume’s URL
*/
public ?string $url = null;
/**
* @var string|null UID
*/
public ?string $uid = null;
}