[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/search/ -> ezsearchfunctioncollection.php (source)

   1  <?php
   2  //
   3  // Definition of eZSearchFunctionCollection class
   4  //
   5  // Created on: <06-Oct-2002 16:19:31 amos>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*! \file ezcontentfunctioncollection.php
  30  */
  31  
  32  /*!
  33    \class eZSearchFunctionCollection ezsearchfunctioncollection.php
  34    \brief The class eZSearchFunctionCollection does
  35  
  36  */
  37  
  38  include_once ( 'kernel/error/errors.php' );
  39  
  40  class eZSearchFunctionCollection
  41  {
  42      /*!
  43       Constructor
  44      */
  45      function eZSearchFunctionCollection()
  46      {
  47      }
  48  
  49      function fetchSearchListCount()
  50      {
  51          include_once ( "kernel/classes/ezsearchlog.php" );
  52  
  53          $db =& eZDB::instance();
  54          $query = "SELECT count(*) as count FROM ezsearch_search_phrase";
  55          $searchListCount = $db->arrayQuery( $query );
  56  
  57          return array( 'result' => $searchListCount[0]['count'] );
  58      }
  59  
  60      function fetchSearchList( $offset, $limit )
  61      {
  62          include_once ( "kernel/classes/ezsearchlog.php" );
  63  
  64          $parameters = array( 'offset' => $offset, 'limit'  => $limit );
  65          $mostFrequentPhraseArray =& eZSearchLog::mostFrequentPhraseArray( $parameters );
  66  
  67          return array( 'result' => &$mostFrequentPhraseArray );
  68      }
  69  
  70  }
  71  
  72  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7