|
Tripal
|


Public Member Functions | |
| handleAutocomplete (Request $request, int $count=5, int $type_id=0) | |
Public Member Functions inherited from Drupal\tripal_chado\Controller\ChadoGenericAutocompleteController | |
| handleGenericAutocomplete (Request $request, string $base_table, string $column_name, string $type_column, string $property_table, int $match_limit=10, int $type_id=0,) | |
Static Public Member Functions | |
| static | getProjectId (string $project) |
| static | getProjectName (int $project) |
Static Public Member Functions inherited from Drupal\tripal_chado\Controller\ChadoGenericAutocompleteController | |
| static | getDefaultOptions () |
| static | getQuery (string $string, array $options) |
| static | getPkeyId (string $value) |
Additional Inherited Members | |
Protected Attributes inherited from Drupal\tripal_chado\Controller\ChadoGenericAutocompleteController | |
| bool | $include_pkey = TRUE |
| string | $match_operator = 'CONTAINS' |
Static Protected Attributes inherited from Drupal\tripal_chado\Controller\ChadoGenericAutocompleteController | |
| static array | $default_options = [] |
Controller, Chado Project Autocomplete.
|
static |
Fetch the project id number, given a project name value.
| string | $project | Project name value. This table column has a unique constraint, so we are guaranteed either zero or one matches. |
|
static |
Fetch the project name, given a project id number.
| int | $project | Project id number value. |
| Drupal\tripal_chado\Controller\ChadoProjectAutocompleteController::handleAutocomplete | ( | Request | $request, |
| int | $count = 5, |
||
| int | $type_id = 0 |
||
| ) |
Controller method, autocomplete project name.
| Request | request | |
| int | $count | Desired number of matching names to suggest. Default to 5 items. Must be declared in autocomplete route parameter i.e. ['count' => 5]. |
| int | $type_id | Project type set in projectprop.type_id to restrict projects to specific type. Default to 0, return projects regardless of type. Must be declared in autocomplete route parameter i.e. ['type_id' => 0]. |