Habari\Terms::field_save PHP Метод

field_save() публичный Метод

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
    function field_save($key, $value)
    {
        Vocabulary::prep_update($value);
        foreach ($value as $term) {
            if ($term instanceof Term) {
                $term->update();
            }
        }
    }