Class Fieldmanager_Datasource
Datasource base class to populate autocomplete and option fields.
Datasources provide data to populate autocomplete and option fields.
This class can be used as an arbitrary data source for static options, or it can be extended to provide custom data sources.
Direct known subclasses
Fieldmanager_Datasource_Post
,
Fieldmanager_Datasource_Term
,
Fieldmanager_Datasource_User
Methods summary
public
|
|
public
string
|
|
public
array,
|
|
public
string
|
#
get_ajax_action( )
Get an action to register by hashing (non cryptographically for speed) the options that make this datasource unique. |
public
|
|
public
void,
|
|
public
string
|
#
presave_alter_values(
Trigger to handle actions needed before saving data |
public
array
|
#
preload_alter_values(
Modify values before rendering editor |
public
string
|
#
presave(
Datasource handles sanitization and validation |
public
string
|
|
public
string
|
Magic methods summary
Properties summary
public
array
|
$options | |
public
boolean
|
$options_callback | |
public
boolean
|
$use_ajax | |
public
boolean
|
$allow_optgroups | |
public
string
|
$ajax_action | |
public static
integer
|
$counter |
#
Counter to create uniquely named AJAX actions. |
public
boolean
|
$grouped |
#
If true, group elements |