  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: template.php 1847 2009-02-27 14:48:11Z hpdl $ |
| |
| 3 | + | $Id: template.php 1848 2009-02-28 02:21:10Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
22 | 22 | | * Holds the template name value |
| |
23 | 23 | | * |
| |
24 | 24 | | * @var string |
  |
25 | | - | * @access private |
| |
| 25 | + | * @access protected |
|
26 | 26 | | */ |
| |
27 | 27 | | |
  |
28 | | - | var $_template; |
| |
| 28 | + | protected $_template; |
|
29 | 29 | | |
| |
30 | 30 | | /** |
| |
31 | 31 | | * Holds the template ID value |
| |
32 | 32 | | * |
| |
33 | 33 | | * @var int |
  |
34 | | - | * @access private |
| |
| 34 | + | * @access protected |
|
35 | 35 | | */ |
| |
36 | 36 | | |
  |
37 | | - | var $_template_id; |
| |
| 37 | + | protected $_template_id; |
|
38 | 38 | | |
| |
39 | 39 | | /** |
| |
40 | 40 | | * Holds the title of the page module |
| |
41 | 41 | | * |
| |
42 | 42 | | * @var string |
  |
43 | | - | * @access private |
| |
| 43 | + | * @access protected |
|
44 | 44 | | */ |
| |
45 | 45 | | |
  |
46 | | - | var $_module; |
| |
| 46 | + | protected $_module; |
|
47 | 47 | | |
| |
48 | 48 | | /** |
| |
49 | 49 | | * Holds the group name of the page |
| |
50 | 50 | | * |
| |
51 | 51 | | * @var string |
  |
52 | | - | * @access private |
| |
| 52 | + | * @access protected |
|
53 | 53 | | */ |
| |
54 | 54 | | |
  |
55 | | - | var $_group; |
| |
| 55 | + | protected $_group; |
|
56 | 56 | | |
| |
57 | 57 | | /** |
| |
58 | 58 | | * Holds the title of the page |
| |
59 | 59 | | * |
| |
60 | 60 | | * @var string |
  |
61 | | - | * @access private |
| |
| 61 | + | * @access protected |
|
62 | 62 | | */ |
| |
63 | 63 | | |
  |
64 | | - | var $_page_title; |
| |
| 64 | + | protected $_page_title; |
|
65 | 65 | | |
| |
66 | 66 | | /** |
| |
67 | 67 | | * Holds the image of the page |
| |
68 | 68 | | * |
| |
69 | 69 | | * @var string |
  |
70 | | - | * @access private |
| |
| 70 | + | * @access protected |
|
71 | 71 | | */ |
| |
72 | 72 | | |
  |
73 | | - | var $_page_image; |
| |
| 73 | + | protected $_page_image; |
|
74 | 74 | | |
| |
75 | 75 | | /** |
| |
76 | 76 | | * Holds the filename of the content to be added to the page |
| |
77 | 77 | | * |
| |
78 | 78 | | * @var string |
  |
79 | | - | * @access private |
| |
| 79 | + | * @access protected |
|
80 | 80 | | */ |
| |
81 | 81 | | |
  |
82 | | - | var $_page_contents; |
| |
| 82 | + | protected $_page_contents; |
|
83 | 83 | | |
| |
84 | 84 | | /** |
| |
85 | 85 | | * Holds the meta tags of the page |
| |
86 | 86 | | * |
| |
87 | 87 | | * @var array |
  |
88 | | - | * @access private |
| |
| 88 | + | * @access protected |
|
89 | 89 | | */ |
| |
90 | 90 | | |
  |
91 | | - | var $_page_tags = array('generator' => array('osCommerce, Open Source E-Commerce Solutions')); |
| |
| 91 | + | protected $_page_tags = array('generator' => array('osCommerce, Open Source E-Commerce Solutions')); |
|
92 | 92 | | |
| |
93 | 93 | | /** |
| |
94 | 94 | | * Holds javascript filenames to be included in the page |
| |
95 | 95 | | * |
| |
96 | 96 | | * The javascript files must be plain javascript files without any PHP logic, and are linked to from the page |
| |
97 | 97 | | * |
| |
98 | 98 | | * @var array |
  |
99 | | - | * @access private |
| |
| 99 | + | * @access protected |
|
100 | 100 | | */ |
| |
101 | 101 | | |
  |
102 | | - | var $_javascript_filenames = array('includes/general.js'); |
| |
| 102 | + | protected $_javascript_filenames = array('includes/general.js'); |
|
103 | 103 | | |
| |
104 | 104 | | /** |
| |
105 | 105 | | * Holds javascript PHP filenames to be included in the page |
| |
106 | 106 | | * |
| |
107 | 107 | | * The javascript PHP filenames can consist of PHP logic to produce valid javascript syntax, and is embedded in the page |
| |
108 | 108 | | * |
| |
109 | 109 | | * @var array |
  |
110 | | - | * @access private |
| |
| 110 | + | * @access protected |
|
111 | 111 | | */ |
| |
112 | 112 | | |
  |
113 | | - | var $_javascript_php_filenames = array(); |
| |
| 113 | + | protected $_javascript_php_filenames = array(); |
|
114 | 114 | | |
| |
115 | 115 | | /** |
| |
116 | 116 | | * Holds blocks of javascript syntax to embedd into the page |
| |
117 | 117 | | * |
| |
118 | 118 | | * Each block must contain its relevant <script> and </script> tags |
| |
119 | 119 | | * |
| |
120 | 120 | | * @var array |
  |
121 | | - | * @access private |
| |
| 121 | + | * @access protected |
|
122 | 122 | | */ |
| |
123 | 123 | | |
  |
124 | | - | var $_javascript_blocks = array(); |
| |
| 124 | + | protected $_javascript_blocks = array(); |
|
125 | 125 | | |
| |
126 | 126 | | /** |
| |
127 | 127 | | * Defines if the requested page has a header |
| |
128 | 128 | | * |
| |
129 | 129 | | * @var boolean |
  |
130 | | - | * @access private |
| |
| 130 | + | * @access protected |
|
131 | 131 | | */ |
| |
132 | 132 | | |
  |
133 | | - | var $_has_header = true; |
| |
| 133 | + | protected $_has_header = true; |
|
134 | 134 | | |
| |
135 | 135 | | /** |
| |
136 | 136 | | * Defines if the requested page has a footer |
| |
137 | 137 | | * |
| |
138 | 138 | | * @var boolean |
  |
139 | | - | * @access private |
| |
| 139 | + | * @access protected |
|
140 | 140 | | */ |
| |
141 | 141 | | |
  |
142 | | - | var $_has_footer = true; |
| |
| 142 | + | protected $_has_footer = true; |
|
143 | 143 | | |
| |
144 | 144 | | /** |
| |
145 | 145 | | * Defines if the requested page has box modules |
| |
146 | 146 | | * |
| |
147 | 147 | | * @var boolean |
  |
148 | | - | * @access private |
| |
| 148 | + | * @access protected |
|
149 | 149 | | */ |
| |
150 | 150 | | |
  |
151 | | - | var $_has_box_modules = true; |
| |
| 151 | + | protected $_has_box_modules = true; |
|
152 | 152 | | |
| |
153 | 153 | | /** |
| |
154 | 154 | | * Defines if the requested page has content modules |
| |
155 | 155 | | * |
| |
156 | 156 | | * @var boolean |
  |
157 | | - | * @access private |
| |
| 157 | + | * @access protected |
|
158 | 158 | | */ |
| |
159 | 159 | | |
  |
160 | | - | var $_has_content_modules = true; |
| |
| 160 | + | protected $_has_content_modules = true; |
|
161 | 161 | | |
| |
162 | 162 | | /** |
| |
163 | 163 | | * Defines if the requested page should display any debug messages |
| |
164 | 164 | | * |
| |
165 | 165 | | * @var boolean |
  |
166 | | - | * @access private |
| |
| 166 | + | * @access protected |
|
167 | 167 | | */ |
| |
168 | 168 | | |
  |
169 | | - | var $_show_debug_messages = true; |
| |
| 169 | + | protected $_show_debug_messages = true; |
  |
170 | 170 | | |
| |
171 | 171 | | /** |
| |
172 | 172 | | * Setup the template class with the requested page module |