*/ class Rex_Feed_Template_Winesearcher extends Rex_Feed_Abstract_Template { protected function init_atts() { $this->attributes = array( 'Required Information' => array( 'name' => 'name', 'description' => 'description', 'vintage' => 'vintage', 'unit-size' => 'unit-size', 'price' => 'price', 'url' => 'url', 'min-order' => 'min-order', 'tax' => 'tax', 'offer-type' => 'offer-type', 'delivery-time' => 'delivery-time', 'stock-level' => 'stock-level', // 'Deeplink' => 'Deeplink', // 'WineName' => 'WineName', ) ); } protected function init_default_template_mappings() { $this->template_mappings = array( array( 'attr' => 'name', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'description', 'type' => 'meta', 'meta_key' => 'description', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'vintage', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'unit-size', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'Price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'url', 'type' => 'meta', 'meta_key' => 'link', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'min-order', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'tax', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'offer-type', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'delivery-time', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) , array( 'attr' => 'stock-level', 'type' => 'static', 'meta_key' => '', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ) // array( // 'attr' => 'Deeplink', // 'type' => 'meta', // 'meta_key' => 'link', // 'st_value' => '', // 'prefix' => '', // 'suffix' => '', // 'escape' => 'cdata', // 'limit' => 0, // ) , // array( // 'attr' => 'WineName', // 'type' => 'meta', // 'meta_key' => 'title', // 'st_value' => '', // 'prefix' => '', // 'suffix' => '', // 'escape' => 'default', // 'limit' => 0, // ) ); } }