Solar_Form_Load_Model::_autoOptions()

protected array Solar_Form_Load_Model::_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).



Local