@@ 156-167 (lines=12) @@ | ||
153 | ]); |
|
154 | } |
|
155 | ||
156 | public function setSheetTitle($sheetId, $title) |
|
157 | { |
|
158 | return new Google_Service_Sheets_Request([ |
|
159 | 'updateSheetProperties' => [ |
|
160 | 'properties' => [ |
|
161 | 'sheetId' => $sheetId, |
|
162 | 'title' => $title, |
|
163 | ], |
|
164 | 'fields' => 'title', |
|
165 | ], |
|
166 | ]); |
|
167 | } |
|
168 | ||
169 | public function setTabColor($sheetId, $tabColor) |
|
170 | { |
|
@@ 183-195 (lines=13) @@ | ||
180 | } |
|
181 | ||
182 | // @todo: remove if not used any more. |
|
183 | public function setSheetPropertiesRequest($sheetId, $title, $tabColor) |
|
184 | { |
|
185 | return new Google_Service_Sheets_Request([ |
|
186 | 'updateSheetProperties' => [ |
|
187 | 'properties' => [ |
|
188 | 'sheetId' => $sheetId, |
|
189 | 'title' => $title, |
|
190 | 'tabColor' => $this->fractalColors($tabColor), |
|
191 | ], |
|
192 | 'fields' => 'title,tabColor', |
|
193 | ], |
|
194 | ]); |
|
195 | } |
|
196 | ||
197 | public function addSheetRequest($title, $rowCount, $columnCount, $tabColor = null) |
|
198 | { |