|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct (array $config=array()) | |
| get_url () | |
| get_search () | |
| get_count () | |
| get_results () | |
| set_url (moodle_url $url) | |
| invalidate_results () | |
| require_capability ($capability, $user=null) | |
| search () | |
| has_more_results () | |
| get_varsearch () | |
Data Fields | |
| const | DEFAULT_SEARCH = '' |
Static Public Attributes | |
| static | $VAR_SEARCH = 'search' |
| static | $MAXRESULTS = 10 |
Protected Member Functions | |
| get_searchsql () | |
| get_itemcontextlevel () | |
| format_results () | |
A base class that can be used to build a specific search upon
Definition at line 29 of file restore_ui_components.php.
| __construct | ( | array $ | config = array() | ) |
Constructor
| array | $config | Config options |
Reimplemented in restore_category_search.
Definition at line 73 of file restore_ui_components.php.

| format_results | ( | ) | [abstract, protected] |
Formats the results
Reimplemented in restore_category_search, and restore_course_search.
| get_count | ( | ) | [final] |
The total number of results
Definition at line 107 of file restore_ui_components.php.


| get_itemcontextlevel | ( | ) | [abstract, protected] |
Gets the context level associated with this components items
Reimplemented in restore_category_search, and restore_course_search.

| get_results | ( | ) | [final] |
Returns an array of results from the search
Definition at line 117 of file restore_ui_components.php.


| get_search | ( | ) | [final] |
The current search string
Definition at line 100 of file restore_ui_components.php.


| get_searchsql | ( | ) | [abstract, protected] |
Returns an array containing the SQL for the search and the params
Reimplemented in restore_category_search, and restore_course_search.

| get_url | ( | ) | [final] |
The URL for this search moodle_page $PAGE
Definition at line 89 of file restore_ui_components.php.


| get_varsearch | ( | ) | [abstract] |
Gets the string used to transfer the search string for this compontents requests
Reimplemented in restore_category_search, and restore_course_search.

| has_more_results | ( | ) | [final] |
Definition at line 188 of file restore_ui_components.php.


| invalidate_results | ( | ) | [final] |
Invalidates the results collected so far
Definition at line 133 of file restore_ui_components.php.
| require_capability | ( | $ | capability, |
| $ | user = null |
||
| ) | [final] |
Adds a required capability which all results will be checked against
| string | $capability | |
| int | null | $user |
Definition at line 142 of file restore_ui_components.php.

| search | ( | ) | [final] |
Executes the search
moodle_database $DB
Definition at line 157 of file restore_ui_components.php.


| set_url | ( | moodle_url $ | url | ) | [final] |
Sets the page URL
| moodle_url | $url |
Definition at line 127 of file restore_ui_components.php.
$MAXRESULTS = 10 [static] |
Definition at line 42 of file restore_ui_components.php.
$VAR_SEARCH = 'search' [static] |
Reimplemented in restore_category_search, and restore_course_search.
Definition at line 40 of file restore_ui_components.php.
| const DEFAULT_SEARCH = '' |
The default values for this components params
Definition at line 34 of file restore_ui_components.php.