A base class that can be used to build a specific search upon.
More...
|
| __construct (array $config=array()) |
| Constructor.
|
|
| get_count () |
| The total number of results.
|
|
| get_results () |
| Returns an array of results from the search.
|
|
| get_search () |
| The current search string.
|
|
moodle_page | get_url () |
| The URL for this search $PAGE.
|
|
| get_varsearch () |
| Gets the string used to transfer the search string for this compontents requests.
|
|
| has_more_results () |
| Returns true if there are more search results.
|
|
| invalidate_results () |
| Invalidates the results collected so far.
|
|
| require_capability ($capability, $user=null) |
| Adds a required capability which all results will be checked against.
|
|
moodle_database | search () |
| Executes the search.
|
|
| set_url (moodle_url $url) |
| Sets the page URL.
|
|
|
const | DEFAULT_SEARCH = '' |
| The default values for this components params.
|
|
|
static string | $VAR_SEARCH = 'search' |
| The param used to convey the current search string.
|
|
A base class that can be used to build a specific search upon.
- Copyright
- 2010 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
restore_search_base::__construct |
( |
array | $config = array() | ) |
|
◆ format_results()
restore_search_base::format_results |
( |
| ) |
|
|
abstractprotected |
◆ get_count()
restore_search_base::get_count |
( |
| ) |
|
|
final |
The total number of results.
- Return values
-
◆ get_itemcontextlevel()
restore_search_base::get_itemcontextlevel |
( |
| ) |
|
|
abstractprotected |
◆ get_results()
restore_search_base::get_results |
( |
| ) |
|
|
final |
Returns an array of results from the search.
- Return values
-
◆ get_search()
restore_search_base::get_search |
( |
| ) |
|
|
final |
The current search string.
- Return values
-
◆ get_searchsql()
restore_search_base::get_searchsql |
( |
| ) |
|
|
abstractprotected |
◆ get_url()
The URL for this search $PAGE.
- Return values
-
moodle_url | The URL for this page |
◆ get_varsearch()
restore_search_base::get_varsearch |
( |
| ) |
|
|
abstract |
◆ has_more_results()
restore_search_base::has_more_results |
( |
| ) |
|
|
final |
Returns true if there are more search results.
- Return values
-
◆ require_capability()
restore_search_base::require_capability |
( |
| $capability, |
|
|
| $user = null ) |
|
final |
Adds a required capability which all results will be checked against.
- Parameters
-
string | $capability | |
int | null | $user | |
◆ search()
Executes the search.
$DB
- Return values
-
◆ set_url()
restore_search_base::set_url |
( |
moodle_url | $url | ) |
|
|
final |
Sets the page URL.
- Parameters
-
The documentation for this class was generated from the following file:
- backup/util/ui/restore_ui_components.php