NoPic eZine
  
Home
Impressum/Imprint
Datenschutz/Policies
 
1.Issue 2006.06/1
 1.1.phpWebSite 1.0.0RC1 released
 1.2.Installing pWS 1.0.0rc1
 1.3.Running thru install
 1.4.First anonymous touch
 1.5.Exploring fallout surface inside
 1.6.Module substitution
 1.7.Directory Tree
 1.8.Database Tables
 1.9.ReadMe summary
   Access.txt
   bbcode.txt
   Cache_Lite.txt
   Categories.txt
   Clipboard.txt
   ControlPanel.txt
   Converting_Modules.txt
   Cookie.txt
   CREDITS.txt
   Database_Class.txt
   DB_Pager.txt
   Demographics.txt
   devdoc.modlayout.txt
   Developer_Rules.txt
   Editor.txt
   Forms.txt
   INSTALL.doc.txt
   Key.txt
   Known_Errors.txt
   Language.txt
   LICENSE.txt
   MiniAdmin.txt
   Mod_Rewrite.txt
   Module_Development.txt
   My_Page.txt
   README.doc.txt
   README.txt
   Related.txt
   Search.txt
   Settings_Class.txt
   SmartTags.txt
   Style_Format.txt
   template.txt
   Theme_Creation.txt
   Using_Javascript.txt
   Version.txt
   WYSIWYG.txt
 1.10.Using module WebPages
 1.11.Using module MenuManager
 1.12.Using webPages Editor
 1.13.Styling and Themes

    en

Search.txt

Adding search to your module
By Matthew McNaney <phpwebsite at tux dot appstate dot edu>
----------------------------------------------------


Introduction
-------------------------------------------------------------------
Adding search to your mod is really simple. All that is required is
usage of the Key class. If your module isn't using Key, then you will
need to build in your own search capabilities.


The search object
-------------------------------------------------------------------
To begin, you need to create a search object:

$search = & new Search($key_id);

The key_id variable is the id to the key indexed to your content item.

Next you need to filter some content through the search object. The
search object will attempt to filter out search keywords.

$search->addKeywords($content);

You could also add your element's title, location, address, etc. just
by calling addKeywords again:

$search->addKeywords($title);

Once you are finished filtering keywords, just save the search object.

$search->save();

The result of the save function will either be true or an error
object.

    en

Copyright © 2006, VbID Verlagsbüro GmbH
pWS modules dcP, dcT, dc4db, Copyright © 2006, VbID Verlagsbüro GmbH
This Site is powered by phpWebSite © The Web Technology Group, Appalachian State University