Overview  Package  Tree cmsdAm 0.8

cmsdAm

Class cmsdam_search

cmsdAm.cmsdam_search

class cmsdam_search

This is the search engine class.

It is useful to make a text search for cmsdam sections body.

Class instance: $cms->search

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

Field Summary
public var$sections

You should not use this variable from your section.

public var$users

You should not use this variable from your section.

public var$groups

You should not use this variable from your section.

public var$conf

You should not use this variable from your section.

public array$search_found_section

Sections found array, null if a search wasn't made

public array$search_found_priority

Priority search array, null if a search wasn't made

public int$search_stime

Time taken by search in seconds.

public int$search_utime

Time taken by search in microseconds.

Method Summary
public intsearch_find

Do the search for the granted sections and returns the number of found sections.

Field Detail

sections

public var $sections

You should not use this variable from your section.

Sections class instance.


users

public var $users

You should not use this variable from your section.

Users class instance.


groups

public var $groups

You should not use this variable from your section.

Groups class instance.


conf

public var $conf

You should not use this variable from your section.

Configuration class instance.


search_found_section

public array $search_found_section = null

Sections found array, null if a search wasn't made


search_found_priority

public array $search_found_priority = null

Priority search array, null if a search wasn't made


search_stime

public int $search_stime

Time taken by search in seconds.


search_utime

public int $search_utime

Time taken by search in microseconds.

Method Detail

search_find()

public int search_find(str search)

Do the search for the granted sections and returns the number of found sections.

NOTE: The array search_found_section is setted with the name of found sections. "$search" is the text you want to search.

Parameters:
search - The text you want to search
Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net> , Paolo Ciuffetti <paolo@underbridges.com>
Returns:
The number of found sections

Overview  Package  Tree cmsdAm 0.8