1 | <?php |
||
9 | class Exporter { |
||
10 | /** |
||
11 | * @var \Google_Client |
||
12 | */ |
||
13 | protected $client; |
||
14 | /** |
||
15 | * @var \Google_Service_Drive |
||
16 | */ |
||
17 | protected $service; |
||
18 | /** |
||
19 | * @var \tomzx\GoogleDocsToMarkdown\Converter |
||
20 | */ |
||
21 | protected $converter; |
||
22 | |||
23 | /** |
||
24 | * @param \Google_Client $client |
||
25 | */ |
||
26 | public function __construct(Google_Client $client) |
||
32 | |||
33 | /** |
||
34 | * @param string $folderId |
||
35 | * @param $outputDirectory |
||
36 | * @param string $path |
||
37 | */ |
||
38 | public function export($folderId, $outputDirectory, $path = null) |
||
44 | |||
45 | /** |
||
46 | * @param string $folderId |
||
47 | * @param $outputDirectory |
||
48 | * @param string $path |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function exportFiles($folderId, $outputDirectory, $path) |
||
88 | |||
89 | /** |
||
90 | * @param string $folderId |
||
91 | * @param $outputDirectory |
||
92 | * @param string $path |
||
93 | */ |
||
94 | protected function exportFolders($folderId, $outputDirectory, $path) |
||
110 | } |
||
111 |