hpdl
|
228
|
1
|
<?php
|
|
2
|
/*
|
hpdl
|
331
|
3
|
$Id: $
|
hpdl
|
228
|
4
|
osCommerce, Open Source E-Commerce Solutions
|
|
5
|
http://www.oscommerce.com
|
|
6
|
|
hpdl
|
296
|
7
|
Copyright (c) 2005 osCommerce
|
hpdl
|
228
|
8
|
|
|
9
|
Released under the GNU General Public License
|
|
10
|
*/
|
|
11
|
|
hpdl
|
333
|
12
|
class osC_Content_recently_visited extends osC_Modules {
|
hpdl
|
331
|
13
|
var $_title = 'Recently Visited',
|
|
14
|
$_code = 'recently_visited',
|
|
15
|
$_author_name = 'osCommerce',
|
hpdl
|
333
|
16
|
$_author_www = 'http://www.oscommerce.com',
|
|
17
|
$_group = 'content';
|
hpdl
|
228
|
18
|
|
|
19
|
/* Class constructor */
|
|
20
|
|
hpdl
|
331
|
21
|
function osC_Content_recently_visited() {
|
hpdl
|
290
|
22
|
}
|
hpdl
|
228
|
23
|
|
hpdl
|
331
|
24
|
function initialize() {
|
|
25
|
$this->_content = 'dummy text';
|
hpdl
|
290
|
26
|
}
|
|
27
|
|
hpdl
|
331
|
28
|
function install() {
|
|
29
|
global $osC_Database;
|
hpdl
|
290
|
30
|
|
hpdl
|
331
|
31
|
$Qinstall = $osC_Database->query('insert into :table_templates_boxes (title, code, author_name, author_www, modules_group) values (:title, :code, :author_name, :author_www, :modules_group)');
|
|
32
|
$Qinstall->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES);
|
|
33
|
$Qinstall->bindValue(':title', $this->_title);
|
|
34
|
$Qinstall->bindValue(':code', $this->_code);
|
|
35
|
$Qinstall->bindValue(':author_name', $this->_author_name);
|
|
36
|
$Qinstall->bindValue(':author_www', $this->_author_www);
|
hpdl
|
333
|
37
|
$Qinstall->bindValue(':modules_group', $this->_group);
|
hpdl
|
331
|
38
|
$Qinstall->execute();
|
hpdl
|
298
|
39
|
}
|
|
40
|
}
|
hpdl
|
297
|
41
|
?>
|