Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
StandardSearch Class Reference
Inheritance diagram for StandardSearch:
Inheritance graph
Collaboration diagram for StandardSearch:
Collaboration graph

Public Member Functions

 __construct ($search)
 getTitle ()
 includePath ()
- Public Member Functions inherited from SQLSearch
 __construct ($query, $title="", $avatarLike="")
 getAvatar ($id)
 getAvatarImageTag ($id, $size=Avatar::SMALL)
 getResults ($input, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0)
- Public Member Functions inherited from SearchType
 getAvatarImageTag ($id)

Static Public Member Functions

static get ($search)
- Static Public Member Functions inherited from SQLSearch
static get ($query, $title="", $avatarLike="")

Additional Inherited Members

- Protected Attributes inherited from SQLSearch
 $sql
 $avatarLike
 $title

Detailed Description

Class of type SearchType used for searches with QuickSearch (lib/classes/QuickSearch.class.php). You can search with a sql-syntax in the database. You just need to give in a query like for a PDB-prepare statement and at least the variable ":input" in the query (the :input will be replaced with the input of the QuickSearch userinput. [code] $search = new SQLSearch("username"); [/code]

Author
Rasmus Fuhse

Constructor & Destructor Documentation

__construct (   $search)
Parameters
string$search
Returns
void

Member Function Documentation

static get (   $search)
static

returns an object of type SQLSearch with parameters to constructor

Parameters
string$search
Returns
SQLSearch
getTitle ( )

returns the title/description of the searchfield

Returns
string title/description

Reimplemented from SQLSearch.

includePath ( )

A very simple overwrite of the same method from SearchType class. returns the absolute path to this class for autoincluding this class.

Returns
: path to this class

Reimplemented from SQLSearch.


The documentation for this class was generated from the following file: