Stud.IP  4.2 Revision
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="")
 
 getTitle ()
 
 getAvatar ($id)
 
 getAvatarImageTag ($id, $size=Avatar::SMALL, $options=array())
 
 getResults ($input, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0)
 
 includePath ()
 
- Public Member Functions inherited from SearchType
 getTitle ()
 
 getAvatar ($id)
 
 getAvatarImageTag ($id)
 
 getResults ($keyword, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0)
 
 includePath ()
 

Data Fields

 $search
 
- Data Fields inherited from SQLSearch
 $extendedLayout = false
 

Additional Inherited Members

- Static Public Member Functions inherited from SQLSearch
static get ()
 
- 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()

__construct (   $search)
Parameters
string$search
Returns
void

Member Function Documentation

◆ getTitle()

getTitle ( )

returns the title/description of the searchfield

Returns
string title/description
Here is the call graph for this function:

◆ includePath()

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
Here is the call graph for this function:

Field Documentation

◆ $search

$search

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