class AssociationField extends AbstractField (View source)

Properties

protected array $data

The current search data.

from  AbstractField
protected array $requestVariables

The list of all the request variables.

from  AbstractField
protected bool $isLoaded

Determines whether the data is loaded into the field. If this is true, loadFromRequest will not repopulate from request.

from  AbstractField
protected Association $association
protected $associationID

Methods

string
renderSearchField()

Generates the HTML for the search form (or an empty string if search is not supported).

jsonSerialize()

No description

mixed
export(SimpleXMLElement $element)

Exports the data to CIF

denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])

No description

setData($key, $value)

No description

loadDataFromRequest(array $request)

Set the search criteria.

void
loadDataFromImport(SimpleXMLElement $element)

No description

string
getKey()

Get the field key.

string
getDisplayName()

Get the field display name.

__construct(Association $association = null)

Initialize the instance.

loadAssociation(Association $association)

No description

getSelectedEntry()

No description

filterList(ItemList $list)

Apply the filter to an ItemList instance.

string[]
__sleep()

Return an array with the names of the properties to be serialized.

__wakeup()

Initialize the instance once it has been deserialized.

Details

string renderSearchField()

Generates the HTML for the search form (or an empty string if search is not supported).

Return Value

string

See also

\Concrete\Core\Express\Search\Field\FieldInterface::renderSearchField()

jsonSerialize()

No description

mixed export(SimpleXMLElement $element)

Exports the data to CIF

Parameters

SimpleXMLElement $element

Return Value

mixed

denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])

No description

Parameters

DenormalizerInterface $denormalizer
$data
$format
array $context

setData($key, $value)

No description

Parameters

$key
$value

loadDataFromRequest(array $request)

Set the search criteria.

Parameters

array $request

See also

FieldInterface::loadDataFromRequest

void loadDataFromImport(SimpleXMLElement $element)

No description

Parameters

SimpleXMLElement $element

Return Value

void

string getKey()

Get the field key.

Return Value

string

See also

\Concrete\Core\Express\Search\Field\FieldInterface::getKey()

string getDisplayName()

Get the field display name.

Return Value

string

See also

\Concrete\Core\Express\Search\Field\FieldInterface::getDisplayName()

__construct(Association $association = null)

Initialize the instance.

Parameters

Association $association

protected loadAssociation(Association $association)

No description

Parameters

Association $association

protected getSelectedEntry()

No description

filterList(ItemList $list)

Apply the filter to an ItemList instance.

Parameters

ItemList $list

See also

\Concrete\Core\Express\Search\Field\FieldInterface::filterList()

string[] __sleep()

Return an array with the names of the properties to be serialized.

Return Value

string[]

__wakeup()

Initialize the instance once it has been deserialized.