PHP Interface Habari\FormStorage

Describes functions that are required to store form data into an object
显示文件 Open project: habari/system

Public Methods

Method Description
field_load ( string $key ) : mixed Loads form values from an object
field_save ( string $key, mixed $value ) Stores a form value into the object

Method Details

field_load() public method

Loads form values from an object
public field_load ( string $key ) : mixed
$key string The name of a form component that will be loaded
return mixed The stored value returned

field_save() public method

Stores a form value into the object
public field_save ( string $key, mixed $value )
$key string The name of a form component that will be stored
$value mixed The value of the form component to store