Quick Search:

View

Revision:

Diff

Diff from 331 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/hpdl/oscommerce/includes/modules/content/recently_visited.php

Annotated File View

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
331
12   class osC_Content_recently_visited extends osC_Boxes {
13     var $_title = 'Recently Visited',
14         $_code = 'recently_visited',
15         $_author_name = 'osCommerce',
16         $_author_www = 'http://www.oscommerce.com';
hpdl
228
17
18 /* Class constructor */
19
hpdl
331
20     function osC_Content_recently_visited() {
hpdl
290
21     }
hpdl
228
22
hpdl
331
23     function initialize() {
24       $this->_content = 'dummy text';
hpdl
290
25     }
26
hpdl
331
27     function install() {
28       global $osC_Database;
hpdl
290
29
hpdl
331
30       $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)');
31       $Qinstall->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES);
32       $Qinstall->bindValue(':title', $this->_title);
33       $Qinstall->bindValue(':code', $this->_code);
34       $Qinstall->bindValue(':author_name', $this->_author_name);
35       $Qinstall->bindValue(':author_www', $this->_author_www);
36       $Qinstall->bindValue(':modules_group', 'content');
37       $Qinstall->execute();
hpdl
298
38     }
39   }
hpdl
297
40 ?>