Révision 01f36513
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/webform/includes/exporters/webform_exporter.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file |
|
5 | 4 |
* Base class defining the common methods available to exporters. |
6 | 5 |
*/ |
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 | 6 |
class webform_exporter { |
12 | 7 |
public $options = array(); |
13 | 8 |
public $export_wordrap; |
... | ... | |
24 | 19 |
} |
25 | 20 |
|
26 | 21 |
/** |
27 |
* Determines whether a cell is eligible for word-wrapping based upon |
|
28 |
* position in file and the contents of cell. |
|
22 |
* Determines whether a cell is eligible for word-wrapping. |
|
23 |
* |
|
24 |
* This is based upon position in file and the contents of cell. |
|
29 | 25 |
* |
30 | 26 |
* Return true when the global word-wrapping option is enabled and the cell |
31 | 27 |
* is anything other than the first column in either of the first two rows. |
... | ... | |
57 | 53 |
* @param int $row_count |
58 | 54 |
* The current number of rows in the export file. |
59 | 55 |
*/ |
60 |
public function add_row(&$file_handle, $data, $row_count) { |
|
56 |
public function add_row(&$file_handle, array $data, $row_count) {
|
|
61 | 57 |
} |
62 | 58 |
|
63 | 59 |
/** |
64 | 60 |
* Provide headers to the page when an export file is being downloaded. |
65 | 61 |
* |
66 |
* @param $filename |
|
62 |
* @param string $filename
|
|
67 | 63 |
* The name of the file being downloaded, for example, export.xls. |
68 | 64 |
*/ |
69 | 65 |
public function set_headers($filename) { |
... | ... | |
86 | 82 |
* |
87 | 83 |
* @param $file_handle |
88 | 84 |
* A PHP file handle to the export file. |
85 |
* @param int $row_count |
|
86 |
* @param int $col_count |
|
89 | 87 |
*/ |
90 | 88 |
public function eof(&$file_handle, $row_count, $col_count) { |
91 | 89 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules