<?php
 class fileField extends baseField { var $Conf = array( 'xtype' => 'fileselect', 'height' => 150, 'icon' => 'file-o', ); function getFieldIcon($tpl) { if($tpl['attr']['filter']=='img') { $this->Conf['icon'] = 'image'; } return $this->Conf['icon']; } } 