  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: template.php 331 2005-12-06 03:28:58Z hpdl $ |
| |
| 3 | + | $Id: template.php 333 2005-12-07 03:15:13Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
205 | 205 | | } |
| |
206 | 206 | | |
| |
207 | 207 | | /** |
  |
208 | | - | * Return the boxes assigned to the page content |
| |
| 208 | + | * Return the box modules assigned to the page |
|
209 | 209 | | * |
  |
210 | | - | * @param string $group The group name of boxes to include that the template has provided |
| |
| 210 | + | * @param string $group The group name of box modules to include that the template has provided |
|
211 | 211 | | * @return array |
| |
212 | 212 | | */ |
| |
213 | 213 | | |
  |
214 | | - | function getPageBoxes($group) { |
| |
215 | | - | static $osC_Boxes; |
| |
216 | | - | |
| |
217 | | - | if (isset($osC_Boxes) === false) { |
| |
218 | | - | $osC_Boxes = new osC_Boxes('boxes'); |
| |
| 214 | + | function getBoxModules($group) { |
| |
| 215 | + | if (isset($this->osC_Modules_Boxes) === false) { |
| |
| 216 | + | $this->osC_Modules_Boxes = new osC_Modules('boxes'); |
|
219 | 217 | | } |
| |
220 | 218 | | |
  |
221 | | - | return $osC_Boxes->getGroup($group); |
| |
| 219 | + | return $this->osC_Modules_Boxes->getGroup($group); |
|
222 | 220 | | } |
| |
223 | 221 | | |
| |
224 | 222 | | /** |
  |
225 | | - | * Return the modules assigned to the page content |
| |
| 223 | + | * Return the content modules assigned to the page |
|
226 | 224 | | * |
  |
227 | | - | * @param string $group The group name of modules to include that the template has provided |
| |
| 225 | + | * @param string $group The group name of content modules to include that the template has provided |
|
228 | 226 | | * @return array |
| |
229 | 227 | | */ |
| |
230 | 228 | | |
  |
231 | | - | function getPageModulesContent($group) { |
| |
232 | | - | static $osC_Boxes; |
| |
233 | | - | |
| |
234 | | - | if (isset($osC_Boxes) === false) { |
| |
235 | | - | $osC_Boxes = new osC_Boxes('content'); |
| |
| 229 | + | function getContentModules($group) { |
| |
| 230 | + | if (isset($this->osC_Modules_Content) === false) { |
| |
| 231 | + | $this->osC_Modules_Content = new osC_Modules('content'); |
|
236 | 232 | | } |
| |
237 | 233 | | |
  |
238 | | - | return $osC_Boxes->getGroup($group); |
| |
| 234 | + | return $this->osC_Modules_Content->getGroup($group); |
  |
239 | 235 | | } |
| |
240 | 236 | | |
| |
241 | 237 | | /** |