protected function getFieldType(array &$row)
    {
        if (isset($row[$this->_modelField]) && ($row[$this->_modelField] === self::APPOINTMENTS_NAME)) {
            return 'appointment';
        }

        if (isset($row['gtf_id_field']) && $row['gtf_id_field']) {
            $row[\Gems_Model::FIELD_ID] = $row['gtf_id_field'];
        }

        if (isset($row[\Gems_Model::FIELD_ID])) {
            return $this->db->fetchOne(
                    "SELECT gtf_field_type FROM gems__track_fields WHERE gtf_id_field = ?",
                    $row[\Gems_Model::FIELD_ID]
                    );
        }

        if (! $this->has('gtf_field_type', 'default')) {
            $this->set('gtf_field_type', 'default', 'text');
        }
        return $this->get('gtf_field_type', 'default');
    }
protected function getFieldType(array &$row)
    {
        if (isset($row[$this->_modelField]) && ($row[$this->_modelField] === self::APPOINTMENTS_NAME)) {
            return 'appointment';
        }

        if (isset($row['gtf_id_field']) && $row['gtf_id_field']) {
            $row[\Gems_Model::FIELD_ID] = $row['gtf_id_field'];
        }

        if (isset($row[\Gems_Model::FIELD_ID])) {
            return $this->db->fetchOne(
                    "SELECT gtf_field_type FROM gems__track_fields WHERE gtf_id_field = ?",
                    $row[\Gems_Model::FIELD_ID]
                    );
        }

        if (! $this->has('gtf_field_type', 'default')) {
            $this->set('gtf_field_type', 'default', 'text');
        }
        return $this->get('gtf_field_type', 'default');
    }
protected function getFieldType ( array & $ row ) { if ( isset ( $ row [ $ this -> _modelField ] ) && ( $ row [ $ this -> _modelField ] === self :: APPOINTMENTS_NAME ) ) { return 'appointment' ; } if ( isset ( $ row [ 'gtf_id_field' ] ) && $ row [ 'gtf_id_field' ] ) { $ row [ \ Gems_Model :: FIELD_ID ] = $ row [ 'gtf_id_field' ] ; } if ( isset ( $ row [ \ Gems_Model :: FIELD_ID ] ) ) { return $ this -> db -> fetchOne ( "SELECT gtf_field_type FROM gems__track_fields WHERE gtf_id_field = ?" , $ row [ \ Gems_Model :: FIELD_ID ] ) ; } if ( ! $ this -> has ( 'gtf_field_type' , 'default' ) ) { $ this -> set ( 'gtf_field_type' , 'default' , 'text' ) ; } return $ this -> get ( 'gtf_field_type' , 'default' ) ; }
Get the type from the row in case it was not set

@param array $row Loaded row
@return string Data type for the row
Get the type from the row in case it was not set