MagNews_Connector - Version 2.1.0

Version Notes

version 2.1.0 stable

Download this release

Release Info

Developer MagNews Development Team
Extension MagNews_Connector
Version 2.1.0
Comparing to
See all releases


Code changes from version 2.0.3 to 2.1.0

app/code/community/Diennea/MagNews/etc/system.xml DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <sections>
4
- </sections>
5
- </config>
 
 
 
 
 
app/code/{community → local}/Diennea/MagNews/Helper/Data.php RENAMED
@@ -1,6 +1,5 @@
1
  <?php
2
 
3
- class Diennea_Magnews_Helper_Data extends Mage_Core_Helper_Abstract
4
- {
5
 
6
- }
1
  <?php
2
 
3
+ class Diennea_Magnews_Helper_Data extends Mage_Core_Helper_Abstract {
 
4
 
5
+ }
app/code/{community → local}/Diennea/MagNews/Model/Abandonedcart/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Catalog/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Custom/Reports/Products/Mostabandoned/Collection.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Custom/Reports/Products/Mostprofitable/Collection.php RENAMED
File without changes
app/code/local/Diennea/MagNews/Model/CustomQuery/Api.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Diennea_MagNews_Model_CustomQuery_Api extends Mage_Api_Model_Resource_Abstract {
4
+
5
+ const TABLE_PREFIX_PLACEHOLDER = '__TABLE_PREFIX__';
6
+
7
+ private function replaceTablePrefix($query) {
8
+ $tablePrefix = Mage::getConfig()->getTablePrefix();
9
+ $tablePrefix = "{$tablePrefix}";
10
+
11
+ return str_replace(self::TABLE_PREFIX_PLACEHOLDER, $tablePrefix, $query);
12
+ }
13
+
14
+ public function getbaseconfig() {
15
+ $tablePrefix = Mage::getConfig()->getTablePrefix();
16
+ $defaultCartUrl = Mage::helper('checkout/cart')->getCartUrl();
17
+
18
+ return array(
19
+ 'ok' => true,
20
+ 'defaultCartUrl' => $defaultCartUrl,
21
+ 'tablePrefix' => "{$tablePrefix}"
22
+ );
23
+ }
24
+
25
+ public function select($query) {
26
+ $query = str_replace("&lt;", "<", $query);
27
+ $query = $this->replaceTablePrefix($query);
28
+
29
+ $resource = Mage::getSingleton('core/resource');
30
+ $readConnection = $resource->getConnection('core_read');
31
+ return $readConnection->fetchAll($query);
32
+ }
33
+
34
+ public function write($query) {
35
+ $query = str_replace("&lt;", "<", $query);
36
+ $query = $this->replaceTablePrefix($query);
37
+
38
+ $resource = Mage::getSingleton('core/resource');
39
+ $writeConnection = $resource->getConnection('core_write');
40
+
41
+ $queryExec = $writeConnection->query($query);
42
+
43
+ $res = array(
44
+ 'ok' => true,
45
+ 'count' => $queryExec->rowCount()
46
+ );
47
+ return $res;
48
+ }
49
+
50
+ }
app/code/{community → local}/Diennea/MagNews/Model/Customerlogin/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Customerqueries/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Customersbatch/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Globalqueries/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Newslettersubscription/Api.php RENAMED
File without changes
app/code/{community → local}/Diennea/MagNews/Model/Store/Api.php RENAMED
@@ -23,7 +23,7 @@ class Diennea_MagNews_Model_Store_Api extends Mage_Api_Model_Resource_Abstract {
23
  /**
24
  * Restituisce la valuta di default per lo store richiesto o quella di
25
  * default del website se niente è stato trovato.
26
- *
27
  * @param type $storeid
28
  * @return type
29
  */
23
  /**
24
  * Restituisce la valuta di default per lo store richiesto o quella di
25
  * default del website se niente è stato trovato.
26
+ *
27
  * @param type $storeid
28
  * @return type
29
  */
app/code/{community → local}/Diennea/MagNews/Model/Version/Api.php RENAMED
@@ -3,7 +3,8 @@
3
  class Diennea_MagNews_Model_Version_Api extends Mage_Api_Model_Resource_Abstract {
4
 
5
  public function getpluginversion() {
6
- $result = array('version'=>'2.0.3');
7
  return $result;
8
- }
 
9
  }
3
  class Diennea_MagNews_Model_Version_Api extends Mage_Api_Model_Resource_Abstract {
4
 
5
  public function getpluginversion() {
6
+ $result = array('version' => '2.1.0');
7
  return $result;
8
+ }
9
+
10
  }
app/code/{community → local}/Diennea/MagNews/etc/api.xml RENAMED
@@ -185,6 +185,28 @@
185
  </getstoredefaultcurrency>
186
  </methods>
187
  </magnews_store>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  </resources>
189
  <acl>
190
  <resources>
185
  </getstoredefaultcurrency>
186
  </methods>
187
  </magnews_store>
188
+ <magnews_customquery translate="title" module="magnews">
189
+ <title>MagNews custom query</title>
190
+ <model>Diennea_MagNews_Model_CustomQuery_Api</model>
191
+ <acl>magnews</acl>
192
+ <methods>
193
+ <getbaseconfig translate="title" module="magnews">
194
+ <title>Get Base Config</title>
195
+ <method>getbaseconfig</method>
196
+ <acl>magnews/useplugin</acl>
197
+ </getbaseconfig>
198
+ <select translate="title" module="magnews">
199
+ <title>Select</title>
200
+ <method>select</method>
201
+ <acl>magnews/useplugin</acl>
202
+ </select>
203
+ <write translate="title" module="magnews">
204
+ <title>Insert/Update</title>
205
+ <method>write</method>
206
+ <acl>magnews/useplugin</acl>
207
+ </write>
208
+ </methods>
209
+ </magnews_customquery>
210
  </resources>
211
  <acl>
212
  <resources>
app/code/{community → local}/Diennea/MagNews/etc/config.xml RENAMED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Diennea_MagNews>
5
- <version>2.0.3</version>
6
  </Diennea_MagNews>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Diennea_MagNews>
5
+ <version>2.1.0</version>
6
  </Diennea_MagNews>
7
  </modules>
8
  <global>
app/etc/modules/Diennea_MagNews.xml CHANGED
@@ -1,8 +1,14 @@
1
- <config>
2
- <modules>
3
- <Diennea_MagNews>
4
- <active>true</active>
5
- <codePool>community</codePool>
6
- </Diennea_MagNews>
7
- </modules>
 
 
 
 
 
 
8
  </config>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Diennea_MagNews>
5
+
6
+ <!-- Whether our module is active: true or false -->
7
+ <active>true</active>
8
+
9
+ <!-- Which code pool to use: core, community or local -->
10
+ <codePool>local</codePool>
11
+
12
+ </Diennea_MagNews>
13
+ </modules>
14
  </config>
package.xml CHANGED
@@ -1,18 +1,30 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MagNews_Connector</name>
4
- <version>2.0.3</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>
8
  <extends/>
9
  <summary>MagNews integration</summary>
10
- <description>Relevant emails by automated targeted lifecycle promotions (chart recovery,upselling,crossselling, whishlists)</description>
11
- <notes>version 2.0.3 stable</notes>
 
 
 
 
 
 
 
 
 
 
 
 
12
  <authors><author><name>MagNews Development Team</name><user>magnews</user><email>info@magnews.it</email></author></authors>
13
- <date>2015-01-08</date>
14
- <time>08:31:48</time>
15
- <contents><target name="magecommunity"><dir name="Diennea"><dir name="MagNews"><dir name="Helper"><file name="Data.php" hash="e987ec7fdf08772f87c9a6b6d5cf896b"/></dir><dir name="Model"><dir name="Abandonedcart"><file name="Api.php" hash="70dc4d31662c7114ed8381aeeed2570a"/></dir><dir name="Catalog"><file name="Api.php" hash="f1df47b33fc40753f0a1b88a9feeb2ee"/></dir><dir name="Custom"><dir name="Reports"><dir name="Products"><dir name="Mostabandoned"><file name="Collection.php" hash="eadc4aab644727a34acf8a8a6f4a3ce9"/></dir><dir name="Mostprofitable"><file name="Collection.php" hash="a7169ff3e60939f244a3d26ceedccb94"/></dir></dir></dir></dir><dir name="Customerlogin"><file name="Api.php" hash="b5ed4c3e391db440d873462949306e38"/></dir><dir name="Customerqueries"><file name="Api.php" hash="65320aeeae57fa6d7eac5bae81daf417"/></dir><dir name="Customersbatch"><file name="Api.php" hash="6c79fa92190fb80e1eb677c69c35f437"/></dir><dir name="Globalqueries"><file name="Api.php" hash="60f6723247f7d952dff4ebaccaf64b46"/></dir><dir name="Newslettersubscription"><file name="Api.php" hash="ce3294946b010c3581cfa4b723482be7"/></dir><dir name="Store"><file name="Api.php" hash="1d5cafbbacf864d0731dd98c00c5f8e7"/></dir><dir name="Version"><file name="Api.php" hash="a1236d44170d4e1118d5a409e4ca0a83"/></dir></dir><dir name="etc"><file name="api.xml" hash="baf621b6425b6eb3ed0877b23bd4e90c"/><file name="config.xml" hash="49d90866ee479e3fef57382dc3a977d5"/><file name="system.xml" hash="35d8f0b103721dd4fce9e0d1237d46de"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Diennea_MagNews.xml" hash="412fb5437a0983360ecf098850b43d18"/></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>MagNews_Connector</name>
4
+ <version>2.1.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>
8
  <extends/>
9
  <summary>MagNews integration</summary>
10
+ <description>Maximize your ROI by integrating Magento with your email marketing solution!&#xD;
11
+ Among others, this MagNews-Magento integration provides the following features:&#xD;
12
+ - Customer profile&#xD;
13
+ - Purchase Orders&#xD;
14
+ - Shopping Cart Abandonment&#xD;
15
+ - Newsletter subscriber synchronization&#xD;
16
+ - Post Purchase Campaigns&#xD;
17
+ - Upselling and Cross-Selling&#xD;
18
+ - and much more...&#xD;
19
+ &#xD;
20
+ About MagNews:&#xD;
21
+ MagNews is a technological platform designed to manage multichannel direct marketing campaigns (Email, SMS, and Fax) in a simple and efficient manner.&#xD;
22
+ Our product is an "intelligent" platform which is guaranteed to give clients the best return on their direct communication activities and to help them connecting with their target audiences.</description>
23
+ <notes>version 2.1.0 stable</notes>
24
  <authors><author><name>MagNews Development Team</name><user>magnews</user><email>info@magnews.it</email></author></authors>
25
+ <date>2015-04-07</date>
26
+ <time>12:16:53</time>
27
+ <contents><target name="magelocal"><dir name="Diennea"><dir name="MagNews"><dir name="Helper"><file name="Data.php" hash="c923c5b3071b7223008f8fdf2cd406cb"/></dir><dir name="Model"><dir name="Abandonedcart"><file name="Api.php" hash="70dc4d31662c7114ed8381aeeed2570a"/></dir><dir name="Catalog"><file name="Api.php" hash="f1df47b33fc40753f0a1b88a9feeb2ee"/></dir><dir name="Custom"><dir name="Reports"><dir name="Products"><dir name="Mostabandoned"><file name="Collection.php" hash="eadc4aab644727a34acf8a8a6f4a3ce9"/></dir><dir name="Mostprofitable"><file name="Collection.php" hash="a7169ff3e60939f244a3d26ceedccb94"/></dir></dir></dir></dir><dir name="CustomQuery"><file name="Api.php" hash="0ef323e6febca50bc224b28ea6b4570c"/></dir><dir name="Customerlogin"><file name="Api.php" hash="b5ed4c3e391db440d873462949306e38"/></dir><dir name="Customerqueries"><file name="Api.php" hash="65320aeeae57fa6d7eac5bae81daf417"/></dir><dir name="Customersbatch"><file name="Api.php" hash="6c79fa92190fb80e1eb677c69c35f437"/></dir><dir name="Globalqueries"><file name="Api.php" hash="60f6723247f7d952dff4ebaccaf64b46"/></dir><dir name="Newslettersubscription"><file name="Api.php" hash="ce3294946b010c3581cfa4b723482be7"/></dir><dir name="Store"><file name="Api.php" hash="e5685f5bf24cb02601a3c7e2f57e7e71"/></dir><dir name="Version"><file name="Api.php" hash="645af02682bcb5ca0b9268998d482aad"/></dir></dir><dir name="etc"><file name="api.xml" hash="12057bf18be9b3894fb30fe87a36e506"/><file name="config.xml" hash="e7c22abcf515594420c1382e8e353728"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Diennea_MagNews.xml" hash="ca53a44d7b4d83d7f4afb85359ba8d3a"/></dir></target></contents>
28
  <compatible/>
29
+ <dependencies><required><php><min>5.2.0</min><max>5.9.9</max></php><extension><name>Core</name><min></min><max></max></extension></required></dependencies>
30
  </package>