cvs: pear /Search_Mnogosearch/Mnogosearch Result.php

From: Date: Mon, 07 Feb 2005 15:33:36 +0000
Subject: cvs: pear /Search_Mnogosearch/Mnogosearch Result.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29176@lists.php.net to get a copy of this message
cbleek Mon Feb 7 10:33:36 2005 EDT Modified files: /pear/Search_Mnogosearch/Mnogosearch Result.php Log: UTF-8 changes http://cvs.php.net/diff.php/pear/Search_Mnogosearch/Mnogosearch/Result.php?r1=1.2&r2=1.3&ty=u Index: pear/Search_Mnogosearch/Mnogosearch/Result.php diff -u pear/Search_Mnogosearch/Mnogosearch/Result.php:1.2 pear/Search_Mnogosearch/Mnogosearch/Result.php:1.3 --- pear/Search_Mnogosearch/Mnogosearch/Result.php:1.2 Fri Dec 3 07:54:45 2004 +++ pear/Search_Mnogosearch/Mnogosearch/Result.php Mon Feb 7 10:33:34 2005 @@ -15,7 +15,7 @@ // | Author: Gerrit Goetsch <goetsch@cross-solution.de> | // +----------------------------------------------------------------------+ // -// $Id: Result.php,v 1.2 2004/12/03 12:54:45 goetsch Exp $ +// $Id: Result.php,v 1.3 2005/02/07 15:33:34 cbleek Exp $ /** * This File contains the class Search_Mnogosearch_Result. @@ -34,19 +34,19 @@ * @license http://www.php.net/license/2_02.txt PHP License 2.02 * @package Search_Mnogosearch * @category Search - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ class Search_Mnogosearch_Result { /** * internal result set. * @access private */ - var $_result; + private $result; /** * internal row counter. * @access private */ - var $_i; + private $i; /** * Number of rows to display per page @@ -61,7 +61,7 @@ * Number of actual results * @access private */ - var $_rows = 0; + private $rows = 0; /** * The search query * @access private @@ -78,12 +78,12 @@ * @return void * @access private */ - function Search_Mnogosearch_Result($result) + function Search_Mnogosearch_Result(&$result) { - $this->_result = $result; - $this->_i = 0; - $this->_rows = $result[SEARCH_MNOGOSEARCH_INFO_NUMROW]; - $this->_query = $result['query']; + $this->result = $result; + $this->i = 0; + $this->rows = $this->getInfo(SEARCH_MNOGOSEARCH_INFO_NUMROW); + $this->_query = $this->getInfo('query'); $this->results = $this->getInfo(SEARCH_MNOGOSEARCH_FOUND); } // end constructor @@ -94,10 +94,10 @@ */ function fetchRow() { - if ($this->_i >= $this->_rows) { + if ($this->i >= $this->rows) { return false; } - return $this->_result['rows'][$this->_i++]; + return $this->result['rows'][$this->i++]; } // end func fetchRow /** @@ -108,8 +108,8 @@ * @access public */ function getInfo($info) - { - return $this->_result[$info]; + { + return $this->result[$info]; } // end func getInfo /** @@ -120,7 +120,7 @@ */ function numRows() { - return $this->_rows; + return $this->rows; } // end func numRows /**

« previous php.pear.cvs (#29176) next »