zendframework/zf2 — pull request #1893 by zucchi (2012-07-15 22:20:16+00:00)
Title: Added storage for custom element options

added $options property with appropriate getters and setters to allow for adding of custom options to an element.

This allows the user to then add additional data that can then be utilised in other ways and does not enforce a restriction.

e.g. $this->add(array(
'name' => 'name',
'attributes' => array(
'type' => 'text',
),
'options' => array(
'label' => 'Name',
'description' => 'The name of the domain', // not currently handled
),
));