File/program/modules/htmlpage/htmlpage_search.php

Description

/program/modules/htmlpage/htmlpage_search.php - interface to the search-part of the htmlpage module

This file defines the interface with the htmlpage-module for searching content. The interface consists of this function:

    htmlpage_search($keywords,$areas)

This function is called whenever data is searched.

  • author: Peter Fokker <peter@berestijn.nl>
  • version: $Id: htmlpage_search.php,v 1.2 2011-02-03 14:04:00 pfokker Exp $
  • copyright: Copyright (C) 2008-2011 Ingenieursbureau PSD/Peter Fokker
  • todo: change this stub into a real search function, with limits on the number of results, an offset where to start and perhaps even a time limit. for now this always returns an empty array
  • license: GNU AGPLv3+Additional Terms
Functions
htmlpage_search (line 46)

search the content of the htmlpage linked to node $node_id

  • return: FALSE on failure, an array with search results on success
bool|array htmlpage_search (string|array $keywords, int|array $areas)
  • string|array $keywords: one or more keywords to search for
  • int|array $areas: one or more $area_id's to search

Documentation generated on Wed, 11 May 2011 23:45:15 +0200 by phpDocumentor 1.4.0