1 | <?php |
||
18 | Class Memory extends Package |
||
19 | { |
||
20 | /** |
||
21 | * Download Crowdin project Translation Memory as TMX file. |
||
22 | * |
||
23 | * @param boolean $includeAssigned Defines whether the assigned TMs should be included in downloaded TMX file. |
||
24 | * Acceptable values are: 0, 1. |
||
25 | * Default is 1. |
||
26 | * |
||
27 | * @since 1.0.5 |
||
28 | * @see https://crowdin.com/page/api/download-tm |
||
29 | * |
||
30 | * @return \Psr\Http\Message\ResponseInterface |
||
31 | */ |
||
32 | 1 | public function download($includeAssigned = true) |
|
37 | |||
38 | /** |
||
39 | * Upload your Translation Memory for Crowdin Project in TMX file format. |
||
40 | * |
||
41 | * @param string $file Full path to file to upload. |
||
42 | * |
||
43 | * @since 1.0.5 |
||
44 | * @see https://crowdin.com/page/api/upload-tm |
||
45 | * |
||
46 | * @return \Psr\Http\Message\ResponseInterface |
||
47 | */ |
||
48 | 1 | public function upload($file) |
|
63 | } |
||
64 |