1 | <?php |
||
13 | class File |
||
14 | { |
||
15 | /** |
||
16 | * @var Client |
||
17 | */ |
||
18 | private $client; |
||
19 | |||
20 | public function __construct(Client $client) |
||
24 | |||
25 | /** |
||
26 | * Get file |
||
27 | * https://cybozudev.zendesk.com/hc/ja/articles/202166180#step1 |
||
28 | * |
||
29 | * @param string $fileKey |
||
30 | * @param int $guestSpaceId |
||
31 | * @return string |
||
32 | */ |
||
33 | public function get($fileKey, $guestSpaceId = null) |
||
40 | |||
41 | /** |
||
42 | * Post file |
||
43 | * https://cybozudev.zendesk.com/hc/ja/articles/201941824#step1 |
||
44 | * |
||
45 | * @param string $filename |
||
46 | * @param int $guestSpaceId |
||
47 | * @return string |
||
48 | */ |
||
49 | public function post($filename, $guestSpaceId = null) |
||
73 | |||
74 | /** |
||
75 | * Returns locale independent base name of the given path. |
||
76 | * |
||
77 | * @param string $name The new file name |
||
78 | * @return string containing |
||
79 | */ |
||
80 | public static function getFilename($name) |
||
88 | } |