@@ -25,7 +25,7 @@ class Code_Snippets_Export {
25
25
* The IDs
26
26
* @var array
27
27
*/
28
- public $ snippet_ids = array ();
28
+ protected $ snippet_ids = array ();
29
29
30
30
/**
31
31
* The name of the table to fetch snippets from
@@ -38,29 +38,29 @@ class Code_Snippets_Export {
38
38
* Either 'xml' or 'php'
39
39
* @var object
40
40
*/
41
- public $ format ;
41
+ protected $ format ;
42
42
43
43
/**
44
44
* The DOM document.
45
45
* Only used in XML exports
46
46
* @var object
47
47
*/
48
- public $ dom ;
48
+ protected $ dom ;
49
49
50
50
/**
51
51
* The DOM document root element
52
52
* Only used in XML exports
53
53
* @var object
54
54
*/
55
- public $ root ;
55
+ protected $ root ;
56
56
57
57
/**
58
58
* Constructor function
59
59
* @param array $ids The IDs of the snippets to export
60
60
* @param string $table The name of the table to fetch snippets from
61
61
* @param string $format The format of the export file
62
62
*/
63
- function __construct ( $ ids , $ table , $ format = 'xml ' ) {
63
+ public function __construct ( $ ids , $ table , $ format = 'xml ' ) {
64
64
$ this ->snippet_ids = (array ) $ ids ;
65
65
$ this ->table_name = $ table ;
66
66
$ this ->format = 'php ' === $ format ? 'php ' : 'xml ' ;
@@ -71,7 +71,7 @@ function __construct( $ids, $table, $format = 'xml' ) {
71
71
* Build the export file name
72
72
* @return string
73
73
*/
74
- function get_filename () {
74
+ public function get_filename () {
75
75
76
76
if ( 1 == count ( $ this ->snippet_ids ) ) {
77
77
/* If there is only snippet to export, use its name instead of the site name */
@@ -133,8 +133,6 @@ protected function do_header_comments() {
133
133
$ this ->dom ->appendChild ( $ gen );
134
134
}
135
135
136
-
137
-
138
136
/**
139
137
* Process all snippet items
140
138
*/
0 commit comments