-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPodiumModule.php
51 lines (45 loc) · 1.39 KB
/
PodiumModule.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Interface PodiumModule
*
* Module for Podium extension
*/
interface PodiumModule
{
/**
* Returns the id for this podium module. The search sql must also return this id as type
*
* @return String id for this module
*/
public static function getPodiumId();
/**
* Returns the displayname for this module
*
* @return mixed
*/
public static function getPodiumName();
/**
* Has to return a SQL Query that discovers all objects. All retrieved data is passed row by row to getPodiumFilter
*
* @param $search the input query string
* @return String SQL Query to discover elements for the search
*/
public static function getPodiumSearch($search);
/**
* Returns an array of information for the found element. Following informations (key: description) are nessesary
*
* - name: The name of the object
* - url: The url to send the user to when he clicks the link
*
* Additional informations are:
*
* - additional: Subtitle for the hit
* - expand: Url if the user further expands the search
* - img: Avatar for the
*
* @param $data One row returned from getPodiumSearch SQL Query
* @param $search The searchstring (Use for markup e.g. Podium::mark)
* @return mixed Information Array
*/
public static function podiumFilter($data, $search);
}