phpDocumentor spunq-backend
[ class tree: spunq-backend ] [ index: spunq-backend ] [ all elements ]

Class: liveSearch

Source Location: /backend/classes/livesearch.class.php

Class liveSearch

Class Overview

DESCRIPTION: class that produces responses for ajax livesearch requests

Located in /backend/classes/livesearch.class.php [line 28]



		
				Author(s):
		
		
		
Information Tags:
Version:  1.2
License:  http://www.gnu.org/licenses/gpl.html
Since:  Version 0.1

Properties

Methods

[ Top ]
Property Summary
mixed   $classdata  
mixed   $classmembers  
mixed   $direction  
mixed   $keyword  
mixed   $order_by  
mixed   $spunq  
mixed   $type  

[ Top ]
Method Summary
void   liveSearch()   liveSearch::liveSearch()
void   __construct()   liveSearch::__construct()
array   addTagsToResults()   liveSearch::addTagsToResults()
void   cleanupKeyword()   liveSearch::cleanupKeyword()
void   createXMLHeader()   liveSearch::createXMLHeader()
array   fullClassSearch()   liveSearch::fullClassSearch()
array   getAllIfEmpty()   liveSearch::getAllIfEmpty()
array   getMatchingFolders()   liveSearch::getMatchingFolders()
array   getSuggestions()   liveSearch::getSuggestions()
void   setDirection()   liveSearch::setDirection()
void   setOrderBy()   liveSearch::setOrderBy()
array   sortObjects()   liveSearch::sortObjects()

[ Top ]
Properties
mixed   $classdata [line 32]

[ Top ]
mixed   $classmembers [line 33]

[ Top ]
mixed   $direction [line 37]

[ Top ]
mixed   $keyword [line 34]

[ Top ]
mixed   $order_by [line 35]

[ Top ]
mixed   $spunq [line 31]

[ Top ]
mixed   $type [line 36]

[ Top ]
Methods
Constructor liveSearch  [line 67]

  void liveSearch( object $spunq, object $class  )

liveSearch::liveSearch()

// purpose: constructor

Parameters:
object   $spunq:  // spunq core object
object   $class:  // current class object


[ Top ]
Constructor __construct  [line 47]

  void __construct( object $spunq, object $class  )

liveSearch::__construct()

// purpose: constructor for php 5

Parameters:
object   $spunq:  // spunq core object
object   $class:  // current class object


[ Top ]
addTagsToResults  [line 299]

  array addTagsToResults( $results  )

liveSearch::addTagsToResults()

// purpose: adds related tags to the result array

Parameters:
   $results: 

API Tags:
Return:  // completed userdata array


[ Top ]
cleanupKeyword  [line 179]

  void cleanupKeyword( )

liveSearch::cleanupKeyword()

// purpose: escapes some characters, eg slashes



[ Top ]
createXMLHeader  [line 164]

  void createXMLHeader( )

liveSearch::createXMLHeader()

// purpose: creates necessary headers for xml response



[ Top ]
fullClassSearch  [line 192]

  array fullClassSearch( )

liveSearch::fullClassSearch()

// purpose: executes a full-text search in the current class


API Tags:
Return:  // result array


[ Top ]
getAllIfEmpty  [line 256]

  array getAllIfEmpty( )

liveSearch::getAllIfEmpty()

// purpose: gets all (e.g. contacts) if nothing has been entered


API Tags:
Return:  // result array


[ Top ]
getMatchingFolders  [line 241]

  array getMatchingFolders( )

liveSearch::getMatchingFolders()

// purpose: searches folders in the given class containing the keyword


API Tags:
Return:  // result array


[ Top ]
getSuggestions  [line 89]

  array getSuggestions( string $keyword, [string $order_by = ""], [string $direction = ""]  )

liveSearch::getSuggestions()

// purpose: livesearch main function, produces result

Parameters:
string   $keyword:  // spunq core object
string   $order_by:  // order_by field for query
string   $direction:  // direction for query (ASC, DESC)


[ Top ]
setDirection  [line 129]

  void setDirection( string $direction  )

liveSearch::setDirection()

// purpose: set direction class variable

Parameters:
string   $direction:  // direction for query (ASC, DESC)


[ Top ]
setOrderBy  [line 145]

  void setOrderBy( string $order_by  )

liveSearch::setOrderBy()

// purpose: set order_by class variable

Parameters:
string   $order_by:  // order_by field for query


[ Top ]
sortObjects  [line 270]

  array sortObjects( $oid_string  )

liveSearch::sortObjects()

// purpose: sorts objects given by oid1::oid2::oid3... string

Parameters:
   $oid_string: 

API Tags:
Return:  // result array


[ Top ]

Documentation generated on Fri, 09 Feb 2007 19:17:43 +0100 by phpDocumentor 1.3.1
js@strg.at