1 | <?php |
||
14 | abstract class Container { |
||
15 | |||
16 | private $scheme = [], $path = ''; |
||
17 | |||
18 | protected $path_full = ''; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | */ |
||
23 | |||
24 | public function __construct(string $path = '') { |
||
34 | |||
35 | /** |
||
36 | * Get the container breadcrumbs |
||
37 | * |
||
38 | * @return array : the list of ancestor directories where each item is an array of type |
||
39 | * ['origin' => $origin, 'path' => $path, 'name' => $name], where $origin is a container's origin directory name, |
||
40 | * $path is a directory's relative path, and $name is an directory's file name |
||
41 | */ |
||
42 | |||
43 | public function getBreadcrumbs() : array { |
||
58 | |||
59 | /** |
||
60 | * Get the container relative path |
||
61 | */ |
||
62 | |||
63 | public function getPath() : string { |
||
67 | |||
68 | /** |
||
69 | * Get the container full path |
||
70 | */ |
||
71 | |||
72 | public function getPathFull() : string { |
||
76 | |||
77 | /** |
||
78 | * Get the origin directory name |
||
79 | */ |
||
80 | |||
81 | public function getOrigin() : string { |
||
85 | |||
86 | /** |
||
87 | * Get the list of container permissions (inherited from origin) |
||
88 | */ |
||
89 | |||
90 | public function getPermissions() : array { |
||
94 | |||
95 | /** |
||
96 | * Check whether the container is set to ignore hidden files or not (inherited from origin) |
||
97 | */ |
||
98 | |||
99 | public function isIgnoreHidden() : bool { |
||
103 | } |
||
104 | } |
||
105 |