DigitalPianism_CustomReports - Version 0.0.16

Version Notes

- Improve memory management when dealing with large subscribers collection.

Download this release

Release Info

Developer Digital Pianism
Extension DigitalPianism_CustomReports
Version 0.0.16
Comparing to
See all releases


Code changes from version 0.0.15 to 0.0.16

app/code/community/DigitalPianism/CustomReports/Block/Signedupnoorder/Grid.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  public function __construct()
3
  {
4
  parent::__construct();
5
  $this->setId('signedupnoorderReportGrid');
6
  $this->setDefaultSort('subscriber_subscriptiondate');
7
  $this->setDefaultDir('desc');
8
  }
9
  protected function _prepareCollection()
10
  {
11
  $collection = Mage::getModel('newsletter/subscriber')->getCollection()
12
  $this->setCollection($collection);
13
  parent::_prepareCollection();
14
  return $this;
15
  }
16
  protected function _prepareColumns()
17
  {
18
  $this->addColumn('subscriber_id', array(
19
  'header' => Mage::helper('reports')->__('Subscriber ID'),
20
  'index' => 'subscriber_id'
21
  ));
22
  $this->addColumn('subscriber_email', array(
23
  'header' => Mage::helper('reports')->__('Subscriber Email'),
24
  'width' => '300',
25
  'index' => 'subscriber_email'
26
  ));
27
  $this->addColumn('subscriber_status', array(
28
  'header' => Mage::helper('reports')->__('Status'),
29
  'width' => '300',
30
  'index' => 'subscriber_status',
31
  ));
32
  $this->addExportType('*/*/exportSignedupnoorderCsv', Mage::helper('reports')->__('CSV'));
33
  $this->addExportType('*/*/exportSignedupnoorderExcel', Mage::helper('reports')->__('Excel'));
34
  return parent::_prepareColumns();
35
  }
 
36
  public function __construct()
37
  {
38
  parent::__construct();
39
  $this->setId('signedupnoorderReportGrid');
40
  $this->setDefaultSort('subscriber_subscriptiondate');
41
  $this->setDefaultDir('desc');
42
  }
43
  protected function _prepareCollection()
44
  {
45
  $collection = Mage::getModel('newsletter/subscriber')->getCollection()
46
  $this->setCollection($collection);
47
  parent::_prepareCollection();
48
  return $this;
49
  }
50
  protected function _prepareColumns()
51
  {
52
  $this->addColumn('subscriber_id', array(
53
  'header' => Mage::helper('reports')->__('Subscriber ID'),
54
  'index' => 'subscriber_id'
55
  ));
56
  $this->addColumn('subscriber_email', array(
57
  'header' => Mage::helper('reports')->__('Subscriber Email'),
58
  'width' => '300',
59
  'index' => 'subscriber_email'
60
  ));
61
  $this->addColumn('subscriber_status', array(
62
  'header' => Mage::helper('reports')->__('Status'),
63
  'width' => '300',
64
  'index' => 'subscriber_status',
65
  ));
66
  $this->addExportType('*/*/exportSignedupnoorderCsv', Mage::helper('reports')->__('CSV'));
67
  $this->addExportType('*/*/exportSignedupnoorderExcel', Mage::helper('reports')->__('Excel'));
68
  return parent::_prepareColumns();
69
  }
 
1
  public function __construct()
2
  {
3
  parent::__construct();
4
  $this->setId('signedupnoorderReportGrid');
5
  $this->setDefaultSort('subscriber_subscriptiondate');
6
  $this->setDefaultDir('desc');
7
  }
8
  protected function _prepareCollection()
9
  {
10
  $collection = Mage::getModel('newsletter/subscriber')->getCollection()
11
  $this->setCollection($collection);
12
  parent::_prepareCollection();
13
  return $this;
14
  }
15
  protected function _prepareColumns()
16
  {
17
  $this->addColumn('subscriber_id', array(
18
  'header' => Mage::helper('reports')->__('Subscriber ID'),
19
  'index' => 'subscriber_id'
20
  ));
21
  $this->addColumn('subscriber_email', array(
22
  'header' => Mage::helper('reports')->__('Subscriber Email'),
23
  'width' => '300',
24
  'index' => 'subscriber_email'
25
  ));
26
  $this->addColumn('subscriber_status', array(
27
  'header' => Mage::helper('reports')->__('Status'),
28
  'width' => '300',
29
  'index' => 'subscriber_status',
30
  ));
31
  $this->addExportType('*/*/exportSignedupnoorderCsv', Mage::helper('reports')->__('CSV'));
32
  $this->addExportType('*/*/exportSignedupnoorderExcel', Mage::helper('reports')->__('Excel'));
33
  return parent::_prepareColumns();
34
  }
35
+ <?php
36
  public function __construct()
37
  {
38
  parent::__construct();
39
  $this->setId('signedupnoorderReportGrid');
40
  $this->setDefaultSort('subscriber_subscriptiondate');
41
  $this->setDefaultDir('desc');
42
  }
43
  protected function _prepareCollection()
44
  {
45
  $collection = Mage::getModel('newsletter/subscriber')->getCollection()
46
  $this->setCollection($collection);
47
  parent::_prepareCollection();
48
  return $this;
49
  }
50
  protected function _prepareColumns()
51
  {
52
  $this->addColumn('subscriber_id', array(
53
  'header' => Mage::helper('reports')->__('Subscriber ID'),
54
  'index' => 'subscriber_id'
55
  ));
56
  $this->addColumn('subscriber_email', array(
57
  'header' => Mage::helper('reports')->__('Subscriber Email'),
58
  'width' => '300',
59
  'index' => 'subscriber_email'
60
  ));
61
  $this->addColumn('subscriber_status', array(
62
  'header' => Mage::helper('reports')->__('Status'),
63
  'width' => '300',
64
  'index' => 'subscriber_status',
65
  ));
66
  $this->addExportType('*/*/exportSignedupnoorderCsv', Mage::helper('reports')->__('CSV'));
67
  $this->addExportType('*/*/exportSignedupnoorderExcel', Mage::helper('reports')->__('Excel'));
68
  return parent::_prepareColumns();
69
  }
app/code/community/DigitalPianism/CustomReports/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DigitalPianism_CustomReports>
5
- <version>0.0.15</version>
6
  </DigitalPianism_CustomReports>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <DigitalPianism_CustomReports>
5
+ <version>0.0.16</version>
6
  </DigitalPianism_CustomReports>
7
  </modules>
8
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_CustomReports</name>
4
- <version>0.0.15</version>
5
  <stability>stable</stability>
6
  <license>Open GPL</license>
7
  <channel>community</channel>
@@ -48,11 +48,11 @@ This module includes the following reports to Magento:&#xD;
48
  &lt;/ul&gt;&#xD;
49
  &#xD;
50
  &lt;p&gt;Thus, if a product is in several categories, it will be counted as a sale for all of these categories.&lt;/p&gt;</description>
51
- <notes>- Fix wrong image path</notes>
52
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
53
  <date>2014-09-18</date>
54
- <time>08:22:01</time>
55
- <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="CustomReports"><dir name="Block"><dir name="Bestsellersbycategory"><file name="Grid.php" hash="6f4c37753db0005e899e2a989d752f15"/></dir><file name="Bestsellersbycategory.php" hash="60483ad3e57dc461f5943c805d149c01"/><file name="Customreport.php" hash="e6bbb8a7baf7acc47f39b02e64ccbc94"/><dir name="Lifetimesales"><file name="Grid.php" hash="b36706d8594b934d1d13b236537b39cd"/></dir><file name="Lifetimesales.php" hash="94d685421ecb611a871d99c1c593ac46"/><dir name="Noupsells"><file name="Grid.php" hash="4dd16b05ccd8b703486fa0064759c91e"/></dir><file name="Noupsells.php" hash="bbc28aa60bd78b8c3ccf2fb94f470751"/><dir name="Shoppedonce"><file name="Grid.php" hash="28401d7c968100aec911545a8074dd70"/></dir><file name="Shoppedonce.php" hash="bc3b20a05d2859a710850cde353599d5"/><dir name="Signedupnoorder"><file name="Grid.php" hash="100be20b5957142f6983bd05fa8453cc"/></dir><file name="Signedupnoorder.php" hash="30d952fcc1fa6e913c98134f195342eb"/><dir name="Wishlist"><file name="Grid.php" hash="94cd0ac0dd2b46e759510ba6f120c93e"/></dir><file name="Wishlist.php" hash="ee711134bdecd35b26fd9ae0f933195a"/><dir name="Worstsellers"><file name="Grid.php" hash="90f13fa28b33da82da46c3bb3b63f300"/></dir><file name="Worstsellers.php" hash="f31350020ae1d4207a49270a226a6df4"/><dir name="Worstsellersbycategory"><file name="Grid.php" hash="0005af367353a778690b9629674ab2ae"/></dir><file name="Worstsellersbycategory.php" hash="4b94e31f8297c38904a073240b7af85e"/></dir><dir name="Model"><dir name="Reports"><dir name="Resource"><dir name="Product"><file name="Collection.php" hash="5e544f160b1916ce3e6c0ace949a8dc9"/></dir></dir></dir></dir><dir name="controllers"><file name="BestsellersbycategoryController.php" hash="bcb8ba02dbfbb37880830c24c88c4791"/><file name="LifetimesalesController.php" hash="36c23ba7464e5b23d7803babdc092097"/><file name="NoupsellsController.php" hash="ccdf273757694494daec860361c0ec52"/><file name="ShoppedonceController.php" hash="0c599676dbb5722feb9bc437cfb985f1"/><file name="SignedupnoorderController.php" hash="0d996537ef4affe736b1aa3437152bc6"/><file name="WishlistController.php" hash="1ee8c24d7ce1ffc28493aedba17505a5"/><file name="WorstsellersController.php" hash="20e935b7f822abd346f76e6a934234da"/><file name="WorstsellersbycategoryController.php" hash="bc37e6b7a41c4ed918018ecdf2042259"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2233874893d9dcc82540d61aa0668328"/><file name="config.xml" hash="7be0f61c3f330fe91ca1748c18c744a1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_CustomReports.xml" hash="2244af82c076ed3abf5064672036ef0b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="DigitalPianism_CustomReports.csv" hash="0fcee0228d1044be8c0b76f02079bf55"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="customreports"><file name="advancedgrid.phtml" hash="0254a130e6c76bf9c8f7a9b7ce1d27ca"/><file name="grid.phtml" hash="a8d2cbad8327390e2b9cd3b7717c384d"/></dir></dir></dir></dir></dir></dir></target></contents>
56
  <compatible/>
57
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
58
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_CustomReports</name>
4
+ <version>0.0.16</version>
5
  <stability>stable</stability>
6
  <license>Open GPL</license>
7
  <channel>community</channel>
48
  &lt;/ul&gt;&#xD;
49
  &#xD;
50
  &lt;p&gt;Thus, if a product is in several categories, it will be counted as a sale for all of these categories.&lt;/p&gt;</description>
51
+ <notes>- Improve memory management when dealing with large subscribers collection.</notes>
52
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
53
  <date>2014-09-18</date>
54
+ <time>14:50:45</time>
55
+ <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="CustomReports"><dir name="Block"><dir name="Bestsellersbycategory"><file name="Grid.php" hash="6f4c37753db0005e899e2a989d752f15"/></dir><file name="Bestsellersbycategory.php" hash="60483ad3e57dc461f5943c805d149c01"/><file name="Customreport.php" hash="e6bbb8a7baf7acc47f39b02e64ccbc94"/><dir name="Lifetimesales"><file name="Grid.php" hash="b36706d8594b934d1d13b236537b39cd"/></dir><file name="Lifetimesales.php" hash="94d685421ecb611a871d99c1c593ac46"/><dir name="Noupsells"><file name="Grid.php" hash="4dd16b05ccd8b703486fa0064759c91e"/></dir><file name="Noupsells.php" hash="bbc28aa60bd78b8c3ccf2fb94f470751"/><dir name="Shoppedonce"><file name="Grid.php" hash="28401d7c968100aec911545a8074dd70"/></dir><file name="Shoppedonce.php" hash="bc3b20a05d2859a710850cde353599d5"/><dir name="Signedupnoorder"><file name="Grid.php" hash="e938295dd831a8180f35830439190730"/></dir><file name="Signedupnoorder.php" hash="30d952fcc1fa6e913c98134f195342eb"/><dir name="Wishlist"><file name="Grid.php" hash="94cd0ac0dd2b46e759510ba6f120c93e"/></dir><file name="Wishlist.php" hash="ee711134bdecd35b26fd9ae0f933195a"/><dir name="Worstsellers"><file name="Grid.php" hash="90f13fa28b33da82da46c3bb3b63f300"/></dir><file name="Worstsellers.php" hash="f31350020ae1d4207a49270a226a6df4"/><dir name="Worstsellersbycategory"><file name="Grid.php" hash="0005af367353a778690b9629674ab2ae"/></dir><file name="Worstsellersbycategory.php" hash="4b94e31f8297c38904a073240b7af85e"/></dir><dir name="Model"><dir name="Reports"><dir name="Resource"><dir name="Product"><file name="Collection.php" hash="5e544f160b1916ce3e6c0ace949a8dc9"/></dir></dir></dir></dir><dir name="controllers"><file name="BestsellersbycategoryController.php" hash="bcb8ba02dbfbb37880830c24c88c4791"/><file name="LifetimesalesController.php" hash="36c23ba7464e5b23d7803babdc092097"/><file name="NoupsellsController.php" hash="ccdf273757694494daec860361c0ec52"/><file name="ShoppedonceController.php" hash="0c599676dbb5722feb9bc437cfb985f1"/><file name="SignedupnoorderController.php" hash="0d996537ef4affe736b1aa3437152bc6"/><file name="WishlistController.php" hash="1ee8c24d7ce1ffc28493aedba17505a5"/><file name="WorstsellersController.php" hash="20e935b7f822abd346f76e6a934234da"/><file name="WorstsellersbycategoryController.php" hash="bc37e6b7a41c4ed918018ecdf2042259"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2233874893d9dcc82540d61aa0668328"/><file name="config.xml" hash="36cd854e2899d555811bd021d84550e2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_CustomReports.xml" hash="2244af82c076ed3abf5064672036ef0b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="DigitalPianism_CustomReports.csv" hash="0fcee0228d1044be8c0b76f02079bf55"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="customreports"><file name="advancedgrid.phtml" hash="0254a130e6c76bf9c8f7a9b7ce1d27ca"/><file name="grid.phtml" hash="a8d2cbad8327390e2b9cd3b7717c384d"/></dir></dir></dir></dir></dir></dir></target></contents>
56
  <compatible/>
57
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
58
  </package>