Quick Search:

View

Revision:

Diff

Diff from 1497 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/hpdl/oscommerce/includes/classes/database/mysql_innodb.php

Annotated File View

hpdl
1
1 <?php
2 /*
hpdl
153
3   $Id: mysql_innodb.php 1497 2007-03-29 13:40:05Z hpdl $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
8   Copyright (c) 2004 osCommerce
9
hpdl
1497
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
hpdl
1
13 */
14
15   require('mysql.php');
16
17   class osC_Database_mysql_innodb extends osC_Database_mysql {
hpdl
220
18     var $use_transactions = true,
19         $use_fulltext = false,
20         $use_fulltext_boolean = false;
hpdl
1
21
22     function osC_Database_mysql_innodb($server, $username, $password) {
23       $this->osC_Database_mysql($server, $username, $password);
24     }
hpdl
220
25
26     function prepareSearch($columns) {
27       $search_sql = '(';
28
29       foreach ($columns as $column) {
30         $search_sql .= $column . ' like :keyword or ';
31       }
32
33       $search_sql = substr($search_sql, 0, -4) . ')';
34
35       return $search_sql;
36     }
hpdl
1
37   }
38 ?>