1 | <?php |
||
25 | class Factory |
||
26 | { |
||
27 | protected $userid; |
||
28 | protected $groupid; |
||
29 | |||
30 | /** |
||
31 | * Class constructor. Sets user/group to current system user/group. |
||
32 | * |
||
33 | * On non POSIX systems both attributes will be set to 0 |
||
34 | * |
||
35 | */ |
||
36 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Creates Root object. |
||
44 | * |
||
45 | * @return Root |
||
46 | */ |
||
47 | public function getRoot() |
||
51 | |||
52 | /** |
||
53 | * Updates time and ownership of a node |
||
54 | * |
||
55 | * @param Node $node |
||
56 | * |
||
57 | * @return Node |
||
58 | */ |
||
59 | public function updateMetadata(Node $node) |
||
66 | |||
67 | /** |
||
68 | * Update file a/c/m times |
||
69 | * |
||
70 | * @param Node $node |
||
71 | * @return Node |
||
72 | */ |
||
73 | public function updateFileTimes(Node $node) |
||
82 | |||
83 | /** |
||
84 | * Sets default (current) uid/gui on object. |
||
85 | * |
||
86 | * @param Node $node |
||
87 | * |
||
88 | * @return Node |
||
89 | */ |
||
90 | protected function updateOwnership(Node $node) |
||
97 | |||
98 | /** |
||
99 | * Creates Directory object. |
||
100 | * |
||
101 | * @param string $basename |
||
102 | * |
||
103 | * @return Directory |
||
104 | */ |
||
105 | public function getDir($basename) |
||
109 | |||
110 | /** |
||
111 | * Creates File object. |
||
112 | * |
||
113 | * @param string $basename |
||
114 | * |
||
115 | * @return File |
||
116 | */ |
||
117 | public function getFile($basename) |
||
121 | |||
122 | /** |
||
123 | * Creates Link object. |
||
124 | * |
||
125 | * @param string $basename |
||
126 | * @param Structure\Node $destination |
||
127 | * |
||
128 | * @return Link |
||
129 | */ |
||
130 | public function getLink($basename, Node $destination) |
||
134 | } |
||
135 |