Ext.define('FV.store.Articles', {
    extend: 'Ext.data.Store',

    requires: ['Ext.data.reader.Xml'],

    model: 'FV.model.Article',

    proxy: {
        type: 'ajax',
        url: 'feed-proxy.php',
        reader: {
            type: 'xml',
            record: 'item',
            keepRawData: false
        }
    },

    sortInfo: {
        property: 'pubDate',
        direction: 'DESC'
    }
});
