Completed
Push — master ( 92d568...1b569d )
by Ingo
02:00
created
code/GenerateCSVJob.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,10 +46,16 @@  discard block
 block discarded – undo
46 46
         $this->Columns = $columns;
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $seperator
51
+     */
49 52
     function setSeparator($seperator) {
50 53
         $this->Separator = $seperator;
51 54
     }
52 55
 
56
+    /**
57
+     * @param boolean $includeHeader
58
+     */
53 59
     function setIncludeHeader($includeHeader) {
54 60
         $this->IncludeHeader = $includeHeader;
55 61
     }
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
         }
99 105
     }
100 106
 
107
+    /**
108
+     * @param GridField|null $gridField
109
+     */
101 110
     protected function outputHeader($gridField, $columns) {
102 111
         $fileData = '';
103 112
         $separator = $this->Separator;
@@ -116,6 +125,10 @@  discard block
 block discarded – undo
116 125
         file_put_contents('/tmp/' . $this->getSignature() . '.csv', $fileData, FILE_APPEND);
117 126
     }
118 127
 
128
+    /**
129
+     * @param GridField|null $gridField
130
+     * @param integer $count
131
+     */
119 132
     protected function outputRows($gridField, $columns, $start, $count) {
120 133
         $fileData = '';
121 134
         $separator = $this->Separator;
@@ -169,7 +182,6 @@  discard block
 block discarded – undo
169 182
     /**
170 183
      * Generate export fields for CSV.
171 184
      *
172
-     * @param GridField $gridField
173 185
      * @return array
174 186
      */
175 187
     public function process() {
Please login to merge, or discard this patch.
code/GridFieldQueuedExportButton.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         }
71 71
     }
72 72
 
73
+    /**
74
+     * @param GridField $gridField
75
+     */
73 76
     function startExport($gridField) {
74 77
         $job = new GenerateCSVJob();
75 78
 
Please login to merge, or discard this patch.