protected function getField(IFormModel $model, $property)
    {
        $cl = get_class($model);
        $smallName = substr($cl, strrpos($cl, '\\') + 1);

        return [
            'id' => $smallName.'_'.$property,
            'name' => $smallName.'['.$property.']',
            'value' => property_exists($model, $property) ? $model->$property : null
        ];
    }
protected function getField(IFormModel $model, $property)
    {
        $cl = get_class($model);
        $smallName = substr($cl, strrpos($cl, '\\') + 1);

        return [
            'id' => $smallName.'_'.$property,
            'name' => $smallName.'['.$property.']',
            'value' => property_exists($model, $property) ? $model->$property : null
        ];
    }
protected function getField ( IFormModel $ model , $ property ) { $ cl = get_class ( $ model ) ; $ smallName = substr ( $ cl , strrpos ( $ cl , '\\' ) + 1 ) ; return [ 'id' => $ smallName . '_' . $ property , 'name' => $ smallName . '[' . $ property . ']' , 'value' => property_exists ( $ model , $ property ) ? $ model -> $ property : null ] ; }
Get model field data

@access private

@param IFormModel $model model
@param string $property model property

@return array
Get model field data