1: <?php
2: /**
3: * You may not change or alter any portion of this comment or credits
4: * of supporting developers from this source code or any supporting source code
5: * which is considered copyrighted (c) material of the original comment or credit authors.
6: *
7: * This program is distributed in the hope that it will be useful,
8: * but WITHOUT ANY WARRANTY; without even the implied warranty of
9: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12:
13: /**
14: * Safe Connection to a MySQL database.
15: *
16: * PHP version 5.3
17: *
18: * @category Xoops\Class\Database\MySQLDatabaseSafe
19: * @package MySQLDatabaseProxy
20: * @author Kazumi Ono <onokazu@xoops.org>
21: * @author readheadedrod <redheadedrod@hotmail.com>
22: * @author Richard Griffith <richard@geekwright.com>
23: * @copyright 2013 XOOPS Project (http://xoops.org)
24: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
25: * @version Release: 2.6
26: * @link http://xoops.org
27: * @since 2.6.0
28: * @deprecated since version 2.6.0 - alpha 3. Switch to doctrine connector.
29: */
30: class XoopsMySQLDatabaseSafe extends XoopsMySQLDatabase
31: {
32: /**
33: * perform a query on the database
34: *
35: * @param string $sql a valid MySQL query
36: * @param int $limit number of records to return
37: * @param int $start offset of first record to return
38: *
39: * @return resource query result or FALSE if successful
40: * or TRUE if successful and no result
41: * @deprecated since version 2.6.0 - alpha 3. Switch to doctrine connector.
42: */
43: public function query($sql, $limit = 0, $start = 0)
44: {
45: $this->deprecated();
46: return $this->queryF($sql, $limit, $start);
47: }
48: }
49: