Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_forum\output\big_search_form Class Reference

Big search form class. More...

Inheritance diagram for mod_forum\output\big_search_form:
renderable templatable

Public Member Functions

 __construct ($course)
 Constructor.
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 
 set_datefrom ($value)
 Set date from.
 
 set_dateto ($value)
 Set date to.
 
 set_forumid ($forumid)
 Forum ID setter search criteria.
 
 set_fullwords ($value)
 Set full words.
 
 set_notwords ($value)
 Set not words.
 
 set_phrase ($value)
 Set phrase.
 
 set_starredonly ($value)
 Set starred only value.
 
 set_subject ($value)
 Set subject.
 
 set_tags ($value)
 Set tags.
 
 set_user ($value)
 Set user.
 
 set_words ($value)
 Set words.
 

Public Attributes

string $actionurl
 The URL of the search form.
 
 $course
 
 $datefrom
 
 $dateto
 
int $forumid
 forum ID.
 
 $forumoptions
 
 $fullwords
 
bool $guestuser
 Is the user a guest user?
 
 $notwords
 
 $phrase
 
 $showfullwords
 
bool $starredonly
 Whether the include starredonly checkbox is checked.
 
 $subject
 
 $tags
 
 $user
 
 $words
 

Detailed Description

Big search form class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_forum\output\big_search_form::__construct ( $course)

Constructor.

Parameters
object$courseThe course.
object$userThe user.

Member Function Documentation

◆ export_for_template()

mod_forum\output\big_search_form::export_for_template ( renderer_base $output)

Function to export the renderer data in a format that is suitable for a mustache template.

This means:

  1. No complex types - only stdClass, array, int, string, float, bool
  2. Any additional info that is required for the template is pre-calculated (e.g. capability checks).
Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implements templatable.

◆ set_datefrom()

mod_forum\output\big_search_form::set_datefrom ( $value)

Set date from.

Parameters
mixed$valueDate from.

◆ set_dateto()

mod_forum\output\big_search_form::set_dateto ( $value)

Set date to.

Parameters
mixed$valueDate to.

◆ set_forumid()

mod_forum\output\big_search_form::set_forumid ( $forumid)

Forum ID setter search criteria.

Parameters
int$forumidThe forum ID.

◆ set_fullwords()

mod_forum\output\big_search_form::set_fullwords ( $value)

Set full words.

Parameters
mixed$valueFull words.

◆ set_notwords()

mod_forum\output\big_search_form::set_notwords ( $value)

Set not words.

Parameters
mixed$valueNot words.

◆ set_phrase()

mod_forum\output\big_search_form::set_phrase ( $value)

Set phrase.

Parameters
mixed$valuePhrase.

◆ set_starredonly()

mod_forum\output\big_search_form::set_starredonly ( $value)

Set starred only value.

Parameters
mixed$valueBool.

◆ set_subject()

mod_forum\output\big_search_form::set_subject ( $value)

Set subject.

Parameters
mixed$valueSubject.

◆ set_tags()

mod_forum\output\big_search_form::set_tags ( $value)

Set tags.

Parameters
mixed$valueTags.

◆ set_user()

mod_forum\output\big_search_form::set_user ( $value)

Set user.

Parameters
mixed$valueUser.

◆ set_words()

mod_forum\output\big_search_form::set_words ( $value)

Set words.

Parameters
mixed$valueWords.

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