Author: jwage Date: 2008-09-26 00:51:36 +0100 (Fri, 26 Sep 2008) New Revision: 4986
Removed: branches/1.0/lib/Doctrine/Search/Scorer.php Log: [1.0] fixes #1459 Removing unused file Deleted: branches/1.0/lib/Doctrine/Search/Scorer.php =================================================================== --- branches/1.0/lib/Doctrine/Search/Scorer.php 2008-09-25 23:47:05 UTC (rev 4985) +++ branches/1.0/lib/Doctrine/Search/Scorer.php 2008-09-25 23:51:36 UTC (rev 4986) @@ -1,63 +0,0 @@ -<?php -/* - * $Id$ - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This software consists of voluntary contributions made by many individuals - * and is licensed under the LGPL. For more information, see - * <http://www.phpdoctrine.org>. - */ - -/** - * Doctrine_Search_Scorer - * - * @package Doctrine - * @subpackage Search - * @author Konsta Vesterinen <[EMAIL PROTECTED]> - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version $Revision$ - * @link www.phpdoctrine.org - * @since 1.0 - */ -class Doctrine_Search_Scorer -{ - protected $_resultSet; - - protected $_components = array(); - - public function __construct($resultSet) - { - $this->_resultSet = $resultSet; - } - - public function addComponent($component) - { - $this->_components[] = $component; - } - - public function process() - { - foreach ($this->_resultSet as $mainRow) { - if (isset($mainRow[$component])) { - if ( ! is_array($mainRow[$component])) { - throw new Doctrine_Search_Exception('Wrong data type in result set.'); - } - - foreach ($mainRow[$component] as $indexRow) { - - } - } - } - } -} \ No newline at end of file --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "doctrine-svn" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.co.uk/group/doctrine-svn?hl=en-GB -~----------~----~----~----~------~----~------~--~---
