public function addField($name, $alias = null)
    {
        $field = $this->add($this->field_class, $name);
        /** @type Field_Base $field */
        $field = $field->actual($alias);

        /** @type Field_Base $field */
        return $field;
    }
public function addField($name, $alias = null)
    {
        $field = $this->add($this->field_class, $name);
        /** @type Field_Base $field */
        $field = $field->actual($alias);

        /** @type Field_Base $field */
        return $field;
    }
public function addField ( $ name , $ alias = null ) { $ field = $ this -> add ( $ this -> field_class , $ name ) ; /** @type Field_Base $field */ $ field = $ field -> actual ( $ alias ) ; /** @type Field_Base $field */ return $ field ; }
Creates field definition object containing field meta-information such as caption, type
validation rules, default value etc.

@param string $name
@param string $alias

@return Field_Base
Creates field definition object containing field meta - information such as caption type validation rules default value etc .