* @copyright 2015 Stud.IP Core-Group * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP */ class MyCoursesSearch extends StandardSearch { private $perm_level; private $parameters; protected $additional_sql_conditions; /** * * @param string $search * * @param string $perm_level * * @param string $additional_sql_conditions An additional SQL snippet * consisting of conditions. This snippet is appended to the * default conditions. * * @return void */ public function __construct($search, $perm_level = 'dozent', $parameters = [], $additional_sql_conditions = '') { parent::__construct($search); $this->perm_level = $perm_level; $this->parameters = $parameters; $this->additional_sql_conditions = trim($additional_sql_conditions); } /** * returns the title/description of the searchfield * * @return string title/description */ public function getTitle() { return _('Veranstaltung suchen'); } /** * 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 *