abstract class Notifications_Field_Autocomplete in Notifications 7
Field with autocomplete values
Hierarchy
- class \Notifications_Field
Expanded class hierarchy of Notifications_Field_Autocomplete
File
- ./
notifications.field.inc, line 404 - Drupal Notifications Framework - Default class file
View source
abstract class Notifications_Field_Autocomplete extends Notifications_Field {
/**
* Format value for autocomplete
*/
function autocomplete_value() {
return $this
->get_name();
}
/**
* Parse value from autocomplete
*/
public abstract function autocomplete_parse($string);
/**
* Get autocomplete path
*/
public abstract function autocomplete_path();
/**
* Parsing values may be different for these ones
*/
function parse_value($value) {
if (is_string($value) && ($parsed = $this
->autocomplete_parse($value))) {
return $parsed;
}
else {
return parent::parse_value($value);
}
}
/**
* Build a form element to edit this field
*/
function element_edit($element = array()) {
$element += parent::element_edit($element);
$element['#default_value'] = $this
->autocomplete_value();
$element['#autocomplete_path'] = $this
->autocomplete_path();
return $element;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Notifications_Field:: |
protected | property | 1 | |
Notifications_Field:: |
public | property | ||
Notifications_Field:: |
protected | property | ||
Notifications_Field:: |
public | property | 6 | |
Notifications_Field:: |
public | property | ||
Notifications_Field:: |
public | property | ||
Notifications_Field:: |
protected | property | ||
Notifications_Field:: |
public | property | 6 | |
Notifications_Field:: |
public | property | ||
Notifications_Field:: |
public static | function | Quick build | |
Notifications_Field:: |
public static | function | Build a field object from submitted values | |
Notifications_Field:: |
public static | function | Build from db object | |
Notifications_Field:: |
public static | function | Build field instance | |
Notifications_Field:: |
function | Check if the field has a valid value or the parameter is a valid value | ||
Notifications_Field:: |
function | Get related Drupal object | ||
Notifications_Field:: |
function | Build a form element to display this field | ||
Notifications_Field:: |
function | Format title and value | ||
Notifications_Field:: |
function | Format value | ||
Notifications_Field:: |
abstract public | function | Get description | 6 |
Notifications_Field:: |
function | Get link if this field is linked to an object | ||
Notifications_Field:: |
function | Get field value name | 1 | |
Notifications_Field:: |
function | Get related Notifications object | 1 | |
Notifications_Field:: |
function | Get system path | 3 | |
Notifications_Field:: |
protected | function | Get field type property | |
Notifications_Field:: |
function | Get query condition for current value | ||
Notifications_Field:: |
public | function | Get title for field | 6 |
Notifications_Field:: |
function | Get field value | ||
Notifications_Field:: |
function | Get query condition for a given value | ||
Notifications_Field:: |
function | Get unique index for this field | ||
Notifications_Field:: |
public static | function | Load multiple fields | |
Notifications_Field:: |
function | Get value/s from object | 3 | |
Notifications_Field:: |
function | Save to db | ||
Notifications_Field:: |
function | Set subscription | ||
Notifications_Field:: |
function | Set value for this field, update related properties | ||
Notifications_Field:: |
public static | function | Get field type information | |
Notifications_Field:: |
function | Check user access | ||
Notifications_Field:: |
static | function | Check if the value is valid for this field has a valid value | |
Notifications_Field:: |
function | Check if this is a valid value for this field | 1 | |
Notifications_Field:: |
public | function | Constructor | |
Notifications_Field:: |
public | function | PHP Magic. Regurn object properties to be serialized | |
Notifications_Field_Autocomplete:: |
abstract public | function | Parse value from autocomplete | 3 |
Notifications_Field_Autocomplete:: |
abstract public | function | Get autocomplete path | 3 |
Notifications_Field_Autocomplete:: |
function | Format value for autocomplete | 1 | |
Notifications_Field_Autocomplete:: |
function |
Build a form element to edit this field Overrides Notifications_Field:: |
||
Notifications_Field_Autocomplete:: |
function |
Parsing values may be different for these ones Overrides Notifications_Field:: |