unbxd_feedconnector - Version 1.0.1

Version Notes

pushes the data to unbxd server

Download this release

Release Info

Developer ananthesh
Extension unbxd_feedconnector
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (32) hide show
  1. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/.DS_Store +0 -0
  2. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Block/Edit.php +2 -2
  3. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Block/Index.php +1 -1
  4. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/.DS_Store +0 -0
  5. app/code/local/Unbxd/Datafeeder/Helper/AnalyticsHelper.php +92 -0
  6. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/Data.php +1 -1
  7. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/UnbxdIndexingHelper.php +1 -1
  8. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/UnbxdTaxonomyHelper.php +1 -1
  9. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Attribute.php +1 -1
  10. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Conf.php +2 -2
  11. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Facet.php +2 -2
  12. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Field.php +2 -2
  13. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Attribute.php +1 -1
  14. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Conf.php +2 -2
  15. app/code/local/Unbxd/Datafeeder/Model/Mysql4/Conf/Collection.php +16 -0
  16. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Field.php +3 -3
  17. app/code/local/Unbxd/Datafeeder/Model/Mysql4/Field/Collection.php +16 -0
  18. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Resource/Attribute.php +1 -1
  19. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/ConfigController.php +2 -1
  20. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/FieldController.php +1 -1
  21. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/IndexController.php +8 -7
  22. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/etc/adminhtml.xml +2 -2
  23. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/etc/config.xml +29 -29
  24. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/scripts/Cron.php +4 -4
  25. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/scripts/abstract.php +0 -0
  26. app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/sql/datafeeder_setup/mysql4-install-0.1.0.php +0 -0
  27. app/code/local/Unbxdsearch/Datafeeder/Model/Mysql4/Conf/Collection.php +0 -16
  28. app/code/local/Unbxdsearch/Datafeeder/Model/Mysql4/Field/Collection.php +0 -16
  29. app/design/adminhtml/base/default/template/datafeeder/conf.phtml +12 -1
  30. app/etc/modules/Unbxd_Datafeeder.xml +8 -0
  31. package.xml +4 -4
  32. shell/UnbxdFeed.php +3 -3
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/.DS_Store RENAMED
File without changes
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Block/Edit.php RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
 
4
- class Unbxdsearch_Datafeeder_Block_Edit extends Mage_Core_Block_Template
5
  {
6
 
7
  public function getCollection()
@@ -9,4 +9,4 @@ class Unbxdsearch_Datafeeder_Block_Edit extends Mage_Core_Block_Template
9
  return Mage::getModel('datafeeder/field')->getCollection();
10
  }
11
  }
12
- ?>
1
  <?php
2
 
3
 
4
+ class Unbxd_Datafeeder_Block_Edit extends Mage_Core_Block_Template
5
  {
6
 
7
  public function getCollection()
9
  return Mage::getModel('datafeeder/field')->getCollection();
10
  }
11
  }
12
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Block/Index.php RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
 
4
- class Unbxdsearch_Datafeeder_Block_Index extends Mage_Adminhtml_Block_Template
5
  {
6
  public function getFullindexFormAction()
7
  {
1
  <?php
2
 
3
 
4
+ class Unbxd_Datafeeder_Block_Index extends Mage_Adminhtml_Block_Template
5
  {
6
  public function getFullindexFormAction()
7
  {
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/.DS_Store RENAMED
File without changes
app/code/local/Unbxd/Datafeeder/Helper/AnalyticsHelper.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Unbxd_Datafeeder_Helper_AnalyticsHelper extends Mage_Core_Helper_Abstract{
3
+
4
+ /**
5
+ * Returns unbxd script tag
6
+ *;
7
+ * @return String
8
+ **/
9
+ public function getAnalyticsScriptTag() {
10
+ $siteName = Mage::getResourceSingleton("datafeeder/conf")->getValue(Mage::app()->getWebsite()->getName() . "/siteName");
11
+ if(is_null($siteName) || $siteName == "" ) {
12
+ Mage::throwException("Unbxd site key is not set");
13
+ }
14
+ $scriptDiv = '<script type="text/javascript">';
15
+ $scriptDiv = $scriptDiv.'var UnbxdSiteName="'.$siteName.'";';
16
+ $scriptDiv = $scriptDiv.'var s=document.createElement("script");';
17
+ $scriptDiv = $scriptDiv.'s.src="//unbxd.s3.amazonaws.com/unbxdAnalytics.js";';
18
+ $scriptDiv = $scriptDiv.'s.type="text/javascript";';
19
+ $scriptDiv = $scriptDiv.'s.async=true;';
20
+ $scriptDiv = $scriptDiv.'document.getElementsByTagName("head").item(0).appendChild(s);';
21
+ $scriptDiv = $scriptDiv.'var s=document.createElement("script");';
22
+ $scriptDiv = $scriptDiv."</script>";
23
+ return $scriptDiv;
24
+ }
25
+
26
+ /**
27
+ * Returns unbxd search box attributes
28
+ *
29
+ * @return String
30
+ **/
31
+ public function getSearchBoxAttribute() {
32
+ return 'unbxdattr="sq"';
33
+ }
34
+
35
+ /**
36
+ * Returns unbxd search box button attributes
37
+ *
38
+ * @return String
39
+ **/
40
+ public function getSearchBoxButtonAttribute() {
41
+ return 'unbxdattr="sq_bt"';
42
+ }
43
+
44
+ /**
45
+ * Returns unbxd navigation meta tag
46
+ *
47
+ * @return String
48
+ **/
49
+ public function getNavigationTag() {
50
+ return '<meta name="unbxd:type" content="category">';
51
+ }
52
+
53
+ /**
54
+ * Returns unbxd product click attributes
55
+ *
56
+ * @return String
57
+ **/
58
+ public function getProductClickAttributes($product, $rank) {
59
+ if (!$product instanceof Mage_Catalog_Model_Product ) {
60
+ Mage::throwException("$product parameter to getProductClickAttributes method should be of type Mage_Catalog_Model_Product");
61
+ }
62
+ if (!$rank || $rank < 1 ) {
63
+ Mage::throwException("$rank parameter to getProductClickAttributes method should be greater than 0");
64
+ }
65
+ return 'unbxdattr="product" unbxdparam_sku="'.$product->getData('entity_id').'" unbxdparam_prank="'.$rank.'"';
66
+ }
67
+
68
+ /**
69
+ * Returns unbxd add to cart attributes
70
+ *
71
+ * @return String
72
+ **/
73
+ public function getAddToCartAttributes($product) {
74
+ if (!$product instanceof Mage_Catalog_Model_Product ) {
75
+ Mage::throwException("$product parameter to getProductClickAttributes method should be of type Mage_Catalog_Model_Product");
76
+ }
77
+ return 'unbxdattr="AddToCart" unbxdparam_sku="'.$product->getData('store_id').'"';
78
+ }
79
+
80
+ /**
81
+ * Returns unbxd order attributes
82
+ *
83
+ * @return String
84
+ **/
85
+ public function getOrderAttributes($product) {
86
+ if (!$product instanceof Mage_Catalog_Model_Product ) {
87
+ Mage::throwException("$product parameter to getProductClickAttributes method should be of type Mage_Catalog_Model_Product");
88
+ }
89
+ return 'unbxdattr="order" unbxdparam_sku="'.$product->getData('store_id').'"';
90
+ }
91
+ }
92
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/Data.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Helper_Data extends Mage_Core_Helper_Abstract
4
  {
5
 
6
  public function getsetaddressparams()
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Helper_Data extends Mage_Core_Helper_Abstract
4
  {
5
 
6
  public function getsetaddressparams()
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/UnbxdIndexingHelper.php RENAMED
@@ -5,7 +5,7 @@
5
  * @author antz(ananthesh@unbxd.com)
6
  */
7
 
8
- class Unbxdsearch_Datafeeder_Helper_UnbxdIndexingHelper {
9
  // This is like to act as a temporary cache, which holds the fieldName to fieldType information
10
  // so that just to avoid multiple database reads, and make it faster
11
  var $fieldType = array();
5
  * @author antz(ananthesh@unbxd.com)
6
  */
7
 
8
+ class Unbxd_Datafeeder_Helper_UnbxdIndexingHelper {
9
  // This is like to act as a temporary cache, which holds the fieldName to fieldType information
10
  // so that just to avoid multiple database reads, and make it faster
11
  var $fieldType = array();
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Helper/UnbxdTaxonomyHelper.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Unbxdsearch_Datafeeder_Helper_UnbxdTaxonomyHelper{
3
 
4
  var $file='unbxdTaxonomy.xml';
5
 
1
  <?php
2
+ class Unbxd_Datafeeder_Helper_UnbxdTaxonomyHelper{
3
 
4
  var $file='unbxdTaxonomy.xml';
5
 
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Attribute.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Attribute{
4
 
5
  $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $label, $product){
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Attribute{
4
 
5
  $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $label, $product){
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Conf.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Conf extends Mage_Core_Model_Abstract {
4
 
5
 
6
  protected function _construct()
@@ -9,4 +9,4 @@ class Unbxdsearch_Datafeeder_Model_Conf extends Mage_Core_Model_Abstract {
9
  }
10
  }
11
 
12
- ?>
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Conf extends Mage_Core_Model_Abstract {
4
 
5
 
6
  protected function _construct()
9
  }
10
  }
11
 
12
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Facet.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Facet extends Mage_Core_Model_Abstract {
4
 
5
 
6
  protected function _construct()
@@ -11,4 +11,4 @@ class Unbxdsearch_Datafeeder_Model_Facet extends Mage_Core_Model_Abstract {
11
 
12
  }
13
 
14
- ?>
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Facet extends Mage_Core_Model_Abstract {
4
 
5
 
6
  protected function _construct()
11
 
12
  }
13
 
14
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Field.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Field extends Mage_Core_Model_Abstract {
4
 
5
  protected function _construct()
6
  {
@@ -8,4 +8,4 @@ class Unbxdsearch_Datafeeder_Model_Field extends Mage_Core_Model_Abstract {
8
  }
9
  }
10
 
11
- ?>
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Field extends Mage_Core_Model_Abstract {
4
 
5
  protected function _construct()
6
  {
8
  }
9
  }
10
 
11
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Attribute.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Mysql4_Attribute {
4
 
5
  protected $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $value, $product){
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Mysql4_Attribute {
4
 
5
  protected $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $value, $product){
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Conf.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Mysql4_Conf extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected function _construct()
6
  {
@@ -41,4 +41,4 @@ class Unbxdsearch_Datafeeder_Model_Mysql4_Conf extends Mage_Core_Model_Mysql4_Ab
41
  }
42
  }
43
  }
44
- ?>
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Mysql4_Conf extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected function _construct()
6
  {
41
  }
42
  }
43
  }
44
+ ?>
app/code/local/Unbxd/Datafeeder/Model/Mysql4/Conf/Collection.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Unbxd_Datafeeder_Model_Mysql4_Conf_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ $this->_init('datafeeder/conf');
9
+ }
10
+
11
+ }
12
+
13
+
14
+
15
+
16
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Field.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Mysql4_Field extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected function _construct()
6
  {
@@ -33,7 +33,7 @@ class Unbxdsearch_Datafeeder_Model_Mysql4_Field extends Mage_Core_Model_Mysql4_A
33
  public function getFields($site) {
34
  $fieldMapping = $this->getFieldMapping($site);
35
  $deltaUpdate =[];
36
- $attributes = Mage::helper('unbxdsearch_datafeeder/UnbxdIndexingHelper')->getAttributes();
37
  foreach($attributes as $attribute){
38
  if (!array_key_exists($attribute->getAttributeCode(), $fieldMapping)) {
39
  $deltaUpdate[$attribute->getAttributeCode()] = "1";
@@ -91,4 +91,4 @@ class Unbxdsearch_Datafeeder_Model_Mysql4_Field extends Mage_Core_Model_Mysql4_A
91
  return $fields;
92
  }
93
  }
94
- ?>
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Mysql4_Field extends Mage_Core_Model_Mysql4_Abstract
4
  {
5
  protected function _construct()
6
  {
33
  public function getFields($site) {
34
  $fieldMapping = $this->getFieldMapping($site);
35
  $deltaUpdate =[];
36
+ $attributes = Mage::helper('unbxd_datafeeder/UnbxdIndexingHelper')->getAttributes();
37
  foreach($attributes as $attribute){
38
  if (!array_key_exists($attribute->getAttributeCode(), $fieldMapping)) {
39
  $deltaUpdate[$attribute->getAttributeCode()] = "1";
91
  return $fields;
92
  }
93
  }
94
+ ?>
app/code/local/Unbxd/Datafeeder/Model/Mysql4/Field/Collection.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Unbxd_Datafeeder_Model_Mysql4_Field_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ $this->_init('datafeeder/field');
9
+ }
10
+
11
+ }
12
+
13
+
14
+
15
+
16
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/Model/Mysql4/Resource/Attribute.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_Model_Resource_Attribute{
4
 
5
  $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $label, $product){
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_Model_Resource_Attribute{
4
 
5
  $attributeMap = array();
6
  public function getAttributeValue($attributeCode, $label, $product){
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/ConfigController.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Unbxdsearch_Datafeeder_ConfigController extends Mage_Core_Controller_Front_Action
3
  {
4
 
5
  /**
@@ -59,6 +59,7 @@ class Unbxdsearch_Datafeeder_ConfigController extends Mage_Core_Controller_Fro
59
  $response = array();
60
  $response["feed"] = Mage::getResourceSingleton("datafeeder/conf")->getValue($site."/feed");
61
  $response["tax"] = Mage::getResourceSingleton("datafeeder/conf")->getValue($site."/tax");
 
62
  echo json_encode($response);
63
  }
64
  }
1
  <?php
2
+ class Unbxd_Datafeeder_ConfigController extends Mage_Core_Controller_Front_Action
3
  {
4
 
5
  /**
59
  $response = array();
60
  $response["feed"] = Mage::getResourceSingleton("datafeeder/conf")->getValue($site."/feed");
61
  $response["tax"] = Mage::getResourceSingleton("datafeeder/conf")->getValue($site."/tax");
62
+ $response["siteName"] = Mage::getResourceSingleton("datafeeder/conf")->getValue($site."/siteName");
63
  echo json_encode($response);
64
  }
65
  }
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/FieldController.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_FieldController extends Mage_Core_Controller_Front_Action
4
  {
5
 
6
  const FIELD_MODEL = 'datafeeder/field';
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_FieldController extends Mage_Core_Controller_Front_Action
4
  {
5
 
6
  const FIELD_MODEL = 'datafeeder/field';
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/controllers/IndexController.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Unbxdsearch_Datafeeder_IndexController extends Mage_Adminhtml_Controller_Action {
4
 
5
  protected function _getSession()
6
  {
@@ -11,16 +11,17 @@ class Unbxdsearch_Datafeeder_IndexController extends Mage_Adminhtml_Controller_A
11
  {
12
  Mage::getResourceSingleton("datafeeder/conf")->updateAction("apiKey", $this->getRequest()->getparam("apikey"));
13
  $this->loadLayout();
14
- $this->_addContent($this->getLayout()->createBlock('unbxdsearch_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
15
  $this->renderLayout();
16
  }
17
 
18
  public function savefeedconfAction(){
19
  Mage::getResourceSingleton("datafeeder/conf")->updateAction($this->getRequest()->getparam("site")."/feed", $this->getRequest()->getparam("feedName"));
20
  Mage::getResourceSingleton("datafeeder/conf")->updateAction($this->getRequest()->getparam("site")."/tax", $this->getRequest()->getparam("feedName"));
 
21
 
22
  $this->loadLayout();
23
- $this->_addContent($this->getLayout()->createBlock('unbxdsearch_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
24
  $this->renderLayout();
25
  }
26
 
@@ -28,12 +29,12 @@ class Unbxdsearch_Datafeeder_IndexController extends Mage_Adminhtml_Controller_A
28
  {
29
  error_log("index actions");
30
  $this->loadLayout();
31
- $this->_addContent($this->getLayout()->createBlock('unbxdsearch_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
32
  $this->renderLayout();
33
  }
34
 
35
  public function fullindexAction(){
36
- $_helper=Mage::helper('unbxdsearch_datafeeder/UnbxdIndexingHelper');
37
  $fromdate="1970-01-01 00:00:00";
38
  $site=$this->getRequest()->getPost("site");
39
  $_helper->indexUnbxdFeed($fromdate,$site);
@@ -41,14 +42,14 @@ class Unbxdsearch_Datafeeder_IndexController extends Mage_Adminhtml_Controller_A
41
  }
42
 
43
  public function taxonomyindexAction(){
44
- $_helper=Mage::helper('unbxdsearch_datafeeder/UnbxdTaxonomyHelper');
45
  $site=$this->getRequest()->getPost("site");
46
  $_helper->indexUnbxdFeed($site);
47
  }
48
 
49
  public function incrementalindexAction()
50
  {
51
- $_helper=Mage::helper('unbxdsearch_datafeeder/UnbxdIndexingHelper');
52
  $fromdate=Mage::getResourceSingleton("datafeeder/conf")->getValue("Lastindex");
53
  if(is_null($fromdate)){
54
  $fromdate="1970-01-01 00:00:00";
1
  <?php
2
 
3
+ class Unbxd_Datafeeder_IndexController extends Mage_Adminhtml_Controller_Action {
4
 
5
  protected function _getSession()
6
  {
11
  {
12
  Mage::getResourceSingleton("datafeeder/conf")->updateAction("apiKey", $this->getRequest()->getparam("apikey"));
13
  $this->loadLayout();
14
+ $this->_addContent($this->getLayout()->createBlock('unbxd_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
15
  $this->renderLayout();
16
  }
17
 
18
  public function savefeedconfAction(){
19
  Mage::getResourceSingleton("datafeeder/conf")->updateAction($this->getRequest()->getparam("site")."/feed", $this->getRequest()->getparam("feedName"));
20
  Mage::getResourceSingleton("datafeeder/conf")->updateAction($this->getRequest()->getparam("site")."/tax", $this->getRequest()->getparam("feedName"));
21
+ Mage::getResourceSingleton("datafeeder/conf")->updateAction($this->getRequest()->getparam("site")."/siteName", $this->getRequest()->getparam("siteName"));
22
 
23
  $this->loadLayout();
24
+ $this->_addContent($this->getLayout()->createBlock('unbxd_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
25
  $this->renderLayout();
26
  }
27
 
29
  {
30
  error_log("index actions");
31
  $this->loadLayout();
32
+ $this->_addContent($this->getLayout()->createBlock('unbxd_datafeeder/index')->setTemplate('datafeeder/conf.phtml'));
33
  $this->renderLayout();
34
  }
35
 
36
  public function fullindexAction(){
37
+ $_helper=Mage::helper('unbxd_datafeeder/UnbxdIndexingHelper');
38
  $fromdate="1970-01-01 00:00:00";
39
  $site=$this->getRequest()->getPost("site");
40
  $_helper->indexUnbxdFeed($fromdate,$site);
42
  }
43
 
44
  public function taxonomyindexAction(){
45
+ $_helper=Mage::helper('unbxd_datafeeder/UnbxdTaxonomyHelper');
46
  $site=$this->getRequest()->getPost("site");
47
  $_helper->indexUnbxdFeed($site);
48
  }
49
 
50
  public function incrementalindexAction()
51
  {
52
+ $_helper=Mage::helper('unbxd_datafeeder/UnbxdIndexingHelper');
53
  $fromdate=Mage::getResourceSingleton("datafeeder/conf")->getValue("Lastindex");
54
  if(is_null($fromdate)){
55
  $fromdate="1970-01-01 00:00:00";
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/etc/adminhtml.xml RENAMED
@@ -1,11 +1,11 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <menu>
4
- <unbxd_datafeeder translate="title" module="unbxdsearch_datafeeder">
5
  <title>Unbxd</title>
6
  <sort_order>30</sort_order>
7
  <children>
8
- <upload translate="title" module="unbxdsearch_datafeeder">
9
  <title>Upload Configuration</title>
10
  <sort_order>11</sort_order>
11
  <action>datafeeder/index/index</action>
1
  <?xml version="1.0"?>
2
  <config>
3
  <menu>
4
+ <unbxd_datafeeder translate="title" module="unbxd_datafeeder">
5
  <title>Unbxd</title>
6
  <sort_order>30</sort_order>
7
  <children>
8
+ <upload translate="title" module="unbxd_datafeeder">
9
  <title>Upload Configuration</title>
10
  <sort_order>11</sort_order>
11
  <action>datafeeder/index/index</action>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/etc/config.xml RENAMED
@@ -1,16 +1,16 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <Unbxdsearch_Datafeeder>
5
  <version>0.1.0</version>
6
- </Unbxdsearch_Datafeeder>
7
  </modules>
8
  <frontend>
9
  <routers>
10
  <datafeeder>
11
  <use>standard</use>
12
  <args>
13
- <module>Unbxdsearch_Datafeeder</module>
14
  <frontName>datafeeder</frontName>
15
  </args>
16
  </datafeeder>
@@ -18,45 +18,45 @@
18
  </frontend>
19
  <global>
20
  <models>
21
- <unbxdsearch_datafeeder>
22
- <class>Unbxdsearch_Datafeeder_Model</class>
23
- <resourceModel>unbxdsearch_datafeeder_resource</resourceModel>
24
- </unbxdsearch_datafeeder>
25
- <unbxdsearch_datafeeder_resource>
26
- <class>Unbxdsearch_Datafeeder_Model_Resource</class>
27
- </unbxdsearch_datafeeder_resource>
28
  </models>
29
  <blocks>
30
- <unbxdsearch_datafeeder>
31
- <class>Unbxdsearch_Datafeeder_Block</class>
32
- </unbxdsearch_datafeeder>
33
  </blocks>
34
  </global>
35
  <global>
36
  <helpers>
37
- <unbxdsearch_datafeeder>
38
- <class>Unbxdsearch_Datafeeder_Helper</class>
39
- </unbxdsearch_datafeeder>
40
  </helpers>
41
  </global>
42
  <admin>
43
  <routers>
44
- <the_name_of_this_element_is_not_important_it_should_be_unique>
45
  <use>admin</use>
46
  <args>
47
- <module>Unbxdsearch_Datafeeder</module>
48
  <frontName>datafeeder</frontName>
49
  </args>
50
- </the_name_of_this_element_is_not_important_it_should_be_unique>
51
  </routers>
52
  </admin>
53
  <adminhtml>
54
  <!-- The <layout> updates allow us to define our block layouts in a separate file so are aren't messin' with the Magento layout files. -->
55
  <layout>
56
  <updates>
57
- <unbxdsearch_datafeeder>
58
- <file>unbxdsearch_datafeeder.xml</file>
59
- </unbxdsearch_datafeeder>
60
  </updates>
61
  </layout>
62
  <!-- The <acl> section is for access control. Here we define the pieces where access can be controlled within a role. -->
@@ -64,14 +64,14 @@
64
  <resources>
65
  <admin>
66
  <children>
67
- <unbxdsearch_datafeeder>
68
- <title>Unbxdsearch Menu Item</title>
69
  <children>
70
- <example translate="title" module="unbxdsearch_datafeeder">
71
  <title>Example Menu Item</title>
72
  </example>
73
  </children>
74
- </unbxdsearch_datafeeder>
75
  </children>
76
  </admin>
77
  </resources>
@@ -80,11 +80,11 @@
80
  <global>
81
  <models>
82
  <datafeeder>
83
- <class>Unbxdsearch_Datafeeder_Model</class>
84
  <resourceModel>datafeeder_mysql4</resourceModel>
85
  </datafeeder>
86
  <datafeeder_mysql4>
87
- <class>Unbxdsearch_Datafeeder_Model_Mysql4</class>
88
  <entities>
89
  <conf>
90
  <table>unbxd_datafeeder_conf</table>
@@ -98,7 +98,7 @@
98
  <resources>
99
  <datafeeder_setup>
100
  <setup>
101
- <module>Unbxdsearch_Datafeeder</module>
102
  </setup>
103
  <connection>
104
  <use>core_setup</use>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <Unbxd_Datafeeder>
5
  <version>0.1.0</version>
6
+ </Unbxd_Datafeeder>
7
  </modules>
8
  <frontend>
9
  <routers>
10
  <datafeeder>
11
  <use>standard</use>
12
  <args>
13
+ <module>Unbxd_Datafeeder</module>
14
  <frontName>datafeeder</frontName>
15
  </args>
16
  </datafeeder>
18
  </frontend>
19
  <global>
20
  <models>
21
+ <unbxd_datafeeder>
22
+ <class>Unbxd_Datafeeder_Model</class>
23
+ <resourceModel>unbxd_datafeeder_resource</resourceModel>
24
+ </unbxd_datafeeder>
25
+ <unbxd_datafeeder_resource>
26
+ <class>Unbxd_Datafeeder_Model_Resource</class>
27
+ </unbxd_datafeeder_resource>
28
  </models>
29
  <blocks>
30
+ <unbxd_datafeeder>
31
+ <class>Unbxd_Datafeeder_Block</class>
32
+ </unbxd_datafeeder>
33
  </blocks>
34
  </global>
35
  <global>
36
  <helpers>
37
+ <unbxd_datafeeder>
38
+ <class>Unbxd_Datafeeder_Helper</class>
39
+ </unbxd_datafeeder>
40
  </helpers>
41
  </global>
42
  <admin>
43
  <routers>
44
+ <unbxd_router>
45
  <use>admin</use>
46
  <args>
47
+ <module>Unbxd_Datafeeder</module>
48
  <frontName>datafeeder</frontName>
49
  </args>
50
+ </unbxd_router>
51
  </routers>
52
  </admin>
53
  <adminhtml>
54
  <!-- The <layout> updates allow us to define our block layouts in a separate file so are aren't messin' with the Magento layout files. -->
55
  <layout>
56
  <updates>
57
+ <unbxd_datafeeder>
58
+ <file>unbxd_datafeeder.xml</file>
59
+ </unbxd_datafeeder>
60
  </updates>
61
  </layout>
62
  <!-- The <acl> section is for access control. Here we define the pieces where access can be controlled within a role. -->
64
  <resources>
65
  <admin>
66
  <children>
67
+ <unbxd_datafeeder>
68
+ <title>Unbxd Menu Item</title>
69
  <children>
70
+ <example translate="title" module="unbxd_datafeeder">
71
  <title>Example Menu Item</title>
72
  </example>
73
  </children>
74
+ </unbxd_datafeeder>
75
  </children>
76
  </admin>
77
  </resources>
80
  <global>
81
  <models>
82
  <datafeeder>
83
+ <class>Unbxd_Datafeeder_Model</class>
84
  <resourceModel>datafeeder_mysql4</resourceModel>
85
  </datafeeder>
86
  <datafeeder_mysql4>
87
+ <class>Unbxd_Datafeeder_Model_Mysql4</class>
88
  <entities>
89
  <conf>
90
  <table>unbxd_datafeeder_conf</table>
98
  <resources>
99
  <datafeeder_setup>
100
  <setup>
101
+ <module>Unbxd_Datafeeder</module>
102
  </setup>
103
  <connection>
104
  <use>core_setup</use>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/scripts/Cron.php RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
  require_once 'abstract.php';
3
 
4
- class Unbxdsearch_Datafeeder_Scripts_Cron extends Mage_Shell_Abstract
5
  {
6
 
7
  public function _getIndexer()
8
  {
9
- return Mage::helper('unbxdsearch_datafeeder/UnbxdIndexingHelper');
10
  }
11
 
12
  public function run(){
@@ -20,6 +20,6 @@ class Unbxdsearch_Datafeeder_Scripts_Cron extends Mage_Shell_Abstract
20
  }
21
 
22
 
23
- $shell = new Unbxdsearch_Datafeeder_Scripts_Cron();
24
  $shell->run();
25
- ?>
1
  <?php
2
  require_once 'abstract.php';
3
 
4
+ class Unbxd_Datafeeder_Scripts_Cron extends Mage_Shell_Abstract
5
  {
6
 
7
  public function _getIndexer()
8
  {
9
+ return Mage::helper('unbxd_datafeeder/UnbxdIndexingHelper');
10
  }
11
 
12
  public function run(){
20
  }
21
 
22
 
23
+ $shell = new Unbxd_Datafeeder_Scripts_Cron();
24
  $shell->run();
25
+ ?>
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/scripts/abstract.php RENAMED
File without changes
app/code/local/{Unbxdsearch → Unbxd}/Datafeeder/sql/datafeeder_setup/mysql4-install-0.1.0.php RENAMED
File without changes
app/code/local/Unbxdsearch/Datafeeder/Model/Mysql4/Conf/Collection.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- class Unbxdsearch_Datafeeder_Model_Mysql4_Conf_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
- {
5
-
6
- public function _construct()
7
- {
8
- $this->_init('datafeeder/conf');
9
- }
10
-
11
- }
12
-
13
-
14
-
15
-
16
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Unbxdsearch/Datafeeder/Model/Mysql4/Field/Collection.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- class Unbxdsearch_Datafeeder_Model_Mysql4_Field_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
- {
5
-
6
- public function _construct()
7
- {
8
- $this->_init('datafeeder/field');
9
- }
10
-
11
- }
12
-
13
-
14
-
15
-
16
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/base/default/template/datafeeder/conf.phtml CHANGED
@@ -49,6 +49,15 @@
49
  </td>
50
  </tr>
51
  </tr>
 
 
 
 
 
 
 
 
 
52
  <tr>
53
  <td class="label">
54
  </td>
@@ -64,6 +73,7 @@
64
 
65
  $jq('[name=editButton]').click(function(evt){
66
  $jq('[name="feedName"]').attr('disabled', false);
 
67
  });
68
 
69
  function progressbar()
@@ -110,6 +120,7 @@
110
  success: function(data) {
111
 
112
  if(data.feed !== "empty") $jq('[name=feedName]').val(data.feed); else $jq('[name=feedName]').val("");
 
113
 
114
 
115
  },
@@ -249,4 +260,4 @@
249
 
250
  </form>
251
  </div>
252
- </div>
49
  </td>
50
  </tr>
51
  </tr>
52
+ <tr>
53
+ <td class="label">
54
+ <b>Unbxd Site Key: </b>
55
+ </td>
56
+ <td class="value">
57
+ <input type="text" id="siteName" name="siteName" value="" disabled/>
58
+ </td>
59
+ </tr>
60
+ </tr>
61
  <tr>
62
  <td class="label">
63
  </td>
73
 
74
  $jq('[name=editButton]').click(function(evt){
75
  $jq('[name="feedName"]').attr('disabled', false);
76
+ $jq('[name="siteName"]').attr('disabled', false);
77
  });
78
 
79
  function progressbar()
120
  success: function(data) {
121
 
122
  if(data.feed !== "empty") $jq('[name=feedName]').val(data.feed); else $jq('[name=feedName]').val("");
123
+ if(data.feed !== "empty") $jq('[name=siteName]').val(data.siteName); else $jq('[name=siteName]').val("");
124
 
125
 
126
  },
260
 
261
  </form>
262
  </div>
263
+ </div>
app/etc/modules/Unbxd_Datafeeder.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <modules>
3
+ <Unbxd_Datafeeder>
4
+ <active>true</active>
5
+ <codePool>local</codePool>
6
+ </Unbxd_Datafeeder>
7
+ </modules>
8
+ </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>unbxd_feedconnector</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>pushes the products from the magento to unbxd servers</description>
11
  <notes>pushes the data to unbxd server</notes>
12
  <authors><author><name>ananthesh</name><user>ananthesh</user><email>ananthesh@unbxd.com</email></author></authors>
13
- <date>2014-05-13</date>
14
- <time>10:55:40</time>
15
- <contents><target name="magelocal"><dir name="Unbxdsearch"><dir name="Datafeeder"><dir name="Block"><file name="Edit.php" hash="592e99623deb15cfa9c923f5b7b7e5fc"/><file name="Index.php" hash="9833c478dcf1eb02b28a2c053b34b1f8"/></dir><dir name="Helper"><file name="Data.php" hash="21f8904963d88a84e1b0320444eec6ce"/><file name="UnbxdIndexingHelper.php" hash="aede82f2555e0af0b16051eb3650870c"/><file name="UnbxdTaxonomyHelper.php" hash="89bdf9463b29697e51d5b69278b5e5f8"/><file name=".DS_Store" hash="801d9a1a1f478b210726cfc656cec74f"/></dir><dir name="Model"><file name="Attribute.php" hash="d188424940429362ac3509779b690c98"/><file name="Conf.php" hash="e91eb879eba35139b11e7a0324392881"/><file name="Facet.php" hash="70addbc9dde26974ed81ca4723633028"/><file name="Field.php" hash="eebcc70e5949b4c5f0631714fd87de54"/><dir name="Mysql4"><file name="Attribute.php" hash="7cb5a9cc9d88b0ef7abb5eb926a33466"/><dir name="Conf"><file name="Collection.php" hash="758413bfdca83c8533972926d7b776da"/></dir><file name="Conf.php" hash="c2ef2f173e1a22531b761d42ea7712d7"/><dir name="Field"><file name="Collection.php" hash="c6929e2057b1d24627a89d00a7b852d6"/></dir><file name="Field.php" hash="33f4b14958edf106fcaeaffad744836f"/><dir name="Resource"><file name="Attribute.php" hash="4e9757e64a4ad8ab04806833affc4a9d"/></dir></dir></dir><dir name="controllers"><file name="ConfigController.php" hash="778b9924aca5cf595803acdb849f6d8a"/><file name="FieldController.php" hash="23d4c5cbd07c22ac3ec0283458ae4a36"/><file name="IndexController.php" hash="b0b4e6473a99415832b4164d4fd6e1d1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ead138122f3ff30faf6f57be7151551b"/><file name="config.xml" hash="a0574c85ff5965f0b8cff710ec27a326"/></dir><dir name="scripts"><file name="Cron.php" hash="64dfa150d3156d5d540a7379d435844d"/><file name="abstract.php" hash="757e66bc99da02c274a0d9723923329e"/></dir><dir name="sql"><dir name="datafeeder_setup"><file name="mysql4-install-0.1.0.php" hash="d7d0aae31e449eadd83d83ae2d3d6e68"/></dir></dir><file name=".DS_Store" hash="b4a356bd7741138b66aa79afcc4abd2f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="datafeeder"><file name="conf.phtml" hash="1e547975226b4efde7fd313a40ff2cc7"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="shell"><file name="UnbxdFeed.php" hash="71aae876897755613741f972355a7a23"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>unbxd_feedconnector</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>pushes the products from the magento to unbxd servers</description>
11
  <notes>pushes the data to unbxd server</notes>
12
  <authors><author><name>ananthesh</name><user>ananthesh</user><email>ananthesh@unbxd.com</email></author></authors>
13
+ <date>2014-06-02</date>
14
+ <time>07:43:25</time>
15
+ <contents><target name="magelocal"><dir name="Unbxd"><dir name="Datafeeder"><dir name="Block"><file name="Edit.php" hash="6cc7e0396c298656c2529d2651bc0ae1"/><file name="Index.php" hash="9114009eae54970145fbb849cfc22dfd"/></dir><dir name="Helper"><file name="AnalyticsHelper.php" hash="5fa89f30aad516326aa623da63de0d25"/><file name="Data.php" hash="2371995c98ae9cd5350f1a27fba7e61f"/><file name="UnbxdIndexingHelper.php" hash="96f78750c5caff618c0123fb8baedbca"/><file name="UnbxdTaxonomyHelper.php" hash="9c16f370fa44807d8524c549c1ddb017"/><file name=".DS_Store" hash="801d9a1a1f478b210726cfc656cec74f"/></dir><dir name="Model"><file name="Attribute.php" hash="88512f545001b669638f6677b3f8b33a"/><file name="Conf.php" hash="b9a9627d779f473b7ab1696fd44a877b"/><file name="Facet.php" hash="a778acee165d1ff0162be6664f4ecf1a"/><file name="Field.php" hash="4206919e3762907aba7d38b39733deba"/><dir name="Mysql4"><file name="Attribute.php" hash="7ec9732a1399db03dec0b6002d1aeb58"/><dir name="Conf"><file name="Collection.php" hash="fa30f58432618d2822ce0e3fe1483efe"/></dir><file name="Conf.php" hash="fc7785946f92585d05005df6ea78cbcb"/><dir name="Field"><file name="Collection.php" hash="5c9a40a3f2df168531c1af18be63bf16"/></dir><file name="Field.php" hash="91e25919139668b47156896f80ef3657"/><dir name="Resource"><file name="Attribute.php" hash="9353baa4f14eeb342de93d20c566bfee"/></dir></dir></dir><dir name="controllers"><file name="ConfigController.php" hash="1ebf102b9a8a97f16e4e57a3d345632d"/><file name="FieldController.php" hash="deef566467fe92b9aa73f72a8787d4de"/><file name="IndexController.php" hash="5ccbcc94597d5ee53a3b53ff85888cb8"/></dir><dir name="etc"><file name="adminhtml.xml" hash="243eca656901fd022f8119a3ad46b569"/><file name="config.xml" hash="54fc7541334bc64135c471f716129f83"/></dir><dir name="scripts"><file name="Cron.php" hash="087a021cf47794f337e4ce0130b2d3b7"/><file name="abstract.php" hash="757e66bc99da02c274a0d9723923329e"/></dir><dir name="sql"><dir name="datafeeder_setup"><file name="mysql4-install-0.1.0.php" hash="d7d0aae31e449eadd83d83ae2d3d6e68"/></dir></dir><file name=".DS_Store" hash="b4a356bd7741138b66aa79afcc4abd2f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="datafeeder"><file name="conf.phtml" hash="ba83184ada65bf4d9117981295457234"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="shell"><file name="UnbxdFeed.php" hash="2b70f51b04c4b62b4a51aca0efae7050"/></dir></target><target name="mageetc"><dir name="modules"><file name="Unbxd_Datafeeder.xml" hash="73f1469ef7c4f5c4eef05900302239de"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
shell/UnbxdFeed.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  require_once 'abstract.php';
3
 
4
- class Unbxdsearch_Datafeeder_Scripts_UnbxdFeed extends Mage_Shell_Abstract
5
  {
6
 
7
  public function _getIndexer()
8
  {
9
- return Mage::helper('unbxdsearch_datafeeder/UnbxdIndexingHelper');
10
  }
11
 
12
  public function run(){
@@ -20,6 +20,6 @@ class Unbxdsearch_Datafeeder_Scripts_UnbxdFeed extends Mage_Shell_Abstract
20
  }
21
 
22
 
23
- $shell = new Unbxdsearch_Datafeeder_Scripts_UnbxdFeed();
24
  $shell->run();
25
  ?>
1
  <?php
2
  require_once 'abstract.php';
3
 
4
+ class Unbxd_Datafeeder_Scripts_UnbxdFeed extends Mage_Shell_Abstract
5
  {
6
 
7
  public function _getIndexer()
8
  {
9
+ return Mage::helper('unbxd_datafeeder/UnbxdIndexingHelper');
10
  }
11
 
12
  public function run(){
20
  }
21
 
22
 
23
+ $shell = new Unbxd_Datafeeder_Scripts_UnbxdFeed();
24
  $shell->run();
25
  ?>