Stud.IP  trunk Revision
MyCoursesSearch Class Reference
Inheritance diagram for MyCoursesSearch:
Inheritance graph
Collaboration diagram for MyCoursesSearch:
Collaboration graph

Public Member Functions

 __construct ( $search, $perm_level='dozent', $parameters=[], $additional_sql_conditions='')
 
 getTitle ()
 
 getResults ($input, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0)
 
 includePath ()
 
- Public Member Functions inherited from StandardSearch
 __construct ($search)
 
 getTitle ()
 
 includePath ()
 
- Public Member Functions inherited from SQLSearch
 __construct ($query, $title="", $avatarLike="")
 
 getTitle ()
 
 getAvatar ($id)
 
 getAvatarImageTag ($id, $size=Avatar::SMALL, $options=[])
 
 getResults ($input, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0)
 
 includePath ()
 
- Public Member Functions inherited from SearchType
 getTitle ()
 
 getAvatar ($id)
 
 getAvatarImageTag ($id)
 
 getResults ($keyword, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0)
 
 includePath ()
 

Data Fields

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

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from SQLSearch
static get ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $search,
  $perm_level = 'dozent',
  $parameters = [],
  $additional_sql_conditions = '' 
)
Parameters
string$search
string$perm_level
string$additional_sql_conditionsAn additional SQL snippet consisting of conditions. This snippet is appended to the default conditions.
Returns
void

Member Function Documentation

◆ getResults()

getResults (   $input,
  $contextual_data = [],
  $limit = PHP_INT_MAX,
  $offset = 0 
)

returns the results of a search Use the contextual_data variable to send more variables than just the input to the SQL. QuickSearch for example sends all other variables of the same <form>-tag here.

Parameters
inputstring: the search-word(s)
contextual_dataarray: an associative array with more variables
limitint: maximum number of results (default: all)
offsetint: return results starting from this row (default: 0)
Returns
array: array(array(), ...)
Here is the call graph for this function:

◆ getTitle()

getTitle ( )

returns the title/description of the searchfield

Returns
string title/description

◆ 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

◆ $additional_sql_conditions

$additional_sql_conditions
protected

◆ $search

$search

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