Previous Page
__destruct()

Solar_Form_Load_Model
_autoOptions()

Next Page
_exception()

_autoOptions()

protected array _autoOptions ( string $type, array $opts )

Builds an option list from validateInKeys and validateInList values.

Parameters

  • (string) $type: The validation type, 'validateInKeys' or 'validateInList'.
  • (array) $opts: The options provided by the validation.

Returns

  • (array)

Description

Builds an option list from validateInKeys and validateInList values.

The 'validateInKeys' options are not changed.

The 'validateInList' options are generally sequential, so the label and the value are made to be identical (based on the label).