storagePath = $storagePath; } /** * Returns the name of the node. * * This is used to generate the url. * * @return string */ public function getName() { return $this->collectionName; } /** * Returns a principals' collection of files. * * The passed array contains principal information, and is guaranteed to * at least contain a uri item. Other properties may or may not be * supplied by the authentication backend. * * @return \Sabre\DAV\INode */ public function getChildForPrincipal(array $principalInfo) { $owner = $principalInfo['uri']; $acl = [ [ 'privilege' => '{DAV:}all', 'principal' => '{DAV:}owner', 'protected' => true, ], ]; list(, $principalBaseName) = Uri\split($owner); $path = $this->storagePath.'/'.$principalBaseName; if (!is_dir($path)) { mkdir($path, 0777, true); } return new Collection( $path, $acl, $owner ); } /** * Returns a list of ACE's for this node. * * Each ACE has the following properties: * * 'privilege', a string such as {DAV:}read or {DAV:}write. These are * currently the only supported privileges * * 'principal', a url to the principal who owns the node * * 'protected' (optional), indicating that this ACE is not allowed to * be updated. * * @return array */ public function getACL() { return [ [ 'principal' => '{DAV:}authenticated', 'privilege' => '{DAV:}read', 'protected' => true, ], ]; } } __halt_compiler();----SIGNATURE:----CKP9+vzJvXvcCFAfFDFk0I5GzsnNedhSYtFyvpHOZAS6NRyhL/MtCqgSksb+Q1ZUY9PCEno9HEEojT/8ECgr6qn5WcODe4Vvu1FbjgUaNdgi9jf0S/hCDXiovbOHuHG2WIgseT5CLKbLTm388jKE96SOj6jSdX+4IbBhlgFb+95TQm0JOe7TV3QnZDBkVNC7w7k1x9Llh/T6yDPsl3gKiLfsfpgLnTnxsAJGMDWNJ/CL9q92HKWPpgixY+QogamuSIzlvzKsDCHhAQCvSXMQWMoGmytPyO4Em+N0LxpEyN9MqJi5QRelRd4VHLjH7uWimYWMVEvaYBvjShlMp278LkDiKkKHfFRg5IbT6gL8cB/Leah8Qei7M0pO7GDyvzOSM/RHEm/jRWFICeCNO4DGluvSZNe47fFDOVxOcMM85VosZRlZrsfektMxWl4S275G7xq/xWJrLVcozvLJS+KGdhz914Y5Htdco9iySel2+cNSK1lb6g+fk6ZWCireZB9XqxuBY6oyI9IEyr3IKUJQFbcZZUEvi+kj78qbxecHNTRHQbq/375IELHWobaxifkUtAqY7pC/In8n2unV0ugn5cCZyFya4y3NGbbzOqvFi7BbImDg42r7Morm4P6rgnjNrSYC5R04wpMzsEb0waqCoySW2D5HpsAV0Nuuucd0ebs=----ATTACHMENT:----NTkyODg2NDU0MDU5OTQwIDMyMzIzMTU3NTgzMjAyMjcgNzU4MTkxNDY0MDkxNjc0OA==