From 5506c9e656b8690aaf457c3fc8f3a27822c74bea Mon Sep 17 00:00:00 2001 From: akulikov Date: Tue, 9 Dec 2008 05:58:08 +0000 Subject: [PATCH] Auto bids added. Model extended. Bid cost with discount added. Dynamic time_increment added git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@22 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Model.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/classes/Model.class.php b/classes/Model.class.php index fcea759..8cbdbbc 100644 --- a/classes/Model.class.php +++ b/classes/Model.class.php @@ -2,11 +2,11 @@ /** * Класс модели данных * - * @copyright - * @link + * @copyright + * @link * @package Majestic * @subpackage DB - * @since + * @since * @version SVN: $Id$ * @filesource $URL$ */ @@ -126,9 +126,9 @@ class ModelSelectResult extends ModelResult $this->result = $res; } - function fetch() + function fetch($class_name = false) { - return mysqli_fetch_object($this->result); + return $class_name ? mysqli_fetch_object($this->result, $class_name) : mysqli_fetch_object($this->result); } function fetchField($field, $default = false)