atk4/atk4 — pull request #58 by richardellisbraithwaite (2012-05-15 08:38:18+00:00)
Title: more intuitive method naming for accessing a field's properties

After adding one or more fields with:

$form->importFields( $model_building ,array('postcode','type'));

I needed to access the postcode form field to add some js events.
I used the $form->get() method, but this returns the data of the field, not the element.
After looking through the source, I found the hasField method, but methods starting with has usually return booleans.
Therefore, I've added getData() and getField() as additional methods which wrap the existing functions to save developers from looking through the source to find how to access a form element.