Solar_Form::setValues()

public void Solar_Form::setValues ( array|Solar_Struct $spec , string $array = NULL )

Manually set the value of several elements.

Parameters

  • (array|Solar_Struct) $spec: The data source to set values from.

  • (string) $array: Rename each element as a key in this array.

Returns

  • (void)

Description

Manually set the value of several elements.

Note that this is subtly different from populate(). This method takes a flat array or struct where the full name of the element is the key, as vs populate() which takes a "natural" hierarchical array like $_POST.



Local