Skip to content
This repository was archived by the owner on Jul 12, 2019. It is now read-only.

Commit 87335f4

Browse files
author
Magmodules
committed
1.1.2
0 parents  commit 87335f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+5112
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
*.zip
3+
.DS_Store

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# KiyOh Connect for Magento® 1
2+
3+
The Magento® KiyOh connector for Magento® 1 integrates KiyOh into your Magento® 1 store. Manage and show your KiyOh reviews and fully automate review invitations all from your Magento® Back-end.
4+
5+
## Development by Magmodules
6+
7+
We are a Dutch Magento® Only Agency dedicated to the development of extensions for Magento® 1 and Magento® 2. All our extensions are coded by our own team and our support team is always there to help you out.
8+
9+
[Visit Magmodules.eu](https://www.magmodules.eu/)
10+
11+
## About KiyOh
12+
13+
KiyOh is a specialist in customer ratings and reviews. Companies use KiyOh to ask customers for a rating and review and publish these on their webshop. This has advantages not only for consumers, but also for the company itself. Consumers can read the reviews of previous customers and know better what to expect of a company. Companies can learn from the customer feedback.
14+
15+
KiyOh started in 2009 and is growing fast. Meanwhile, there are already thousands of online shops that use KiyOh to collect ratings and reviews.
16+
17+
[Visit KiyOh.com](https://www.kiyoh.com/)
18+
19+
## Links
20+
21+
[Knowledgebase](https://www.magmodules.eu/help/webwinkelkeur)
22+
23+
[Terms and Conditions](https://www.magmodules.eu/terms.html)
24+
25+
[Contact Us](https://www.magmodules.eu/contact-us.html)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Magmodules.eu - http://www.magmodules.eu
4+
*
5+
* NOTICE OF LICENSE
6+
* This source file is subject to the Open Software License (OSL 3.0)
7+
* that is bundled with this package in the file LICENSE.txt.
8+
* It is also available through the world-wide-web at this URL:
9+
* http://opensource.org/licenses/osl-3.0.php
10+
* If you did not receive a copy of the license and are unable to
11+
* obtain it through the world-wide-web, please send an email
12+
* to [email protected] so we can send you a copy immediately.
13+
*
14+
* @category Magmodules
15+
* @package Magmodules_Kiyoh
16+
* @author Magmodules <[email protected])
17+
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
18+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
*/
20+
21+
class Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog extends Mage_Adminhtml_Block_Widget_Grid_Container
22+
{
23+
24+
/**
25+
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog constructor.
26+
*/
27+
public function __construct()
28+
{
29+
$this->_controller = 'adminhtml_kiyohlog';
30+
$this->_blockGroup = 'kiyoh';
31+
$this->_headerText = Mage::helper('kiyoh')->__('Kiyoh Logs');
32+
33+
parent::__construct();
34+
35+
$this->_removeButton('add');
36+
$this->_addButton(
37+
'module_controller', array(
38+
'label' => Mage::helper('kiyoh')->__('Cleanup Log'),
39+
'onclick' => "setLocation('{$this->getUrl('adminhtml/kiyohlog/clean')}')",
40+
'confirm' => Mage::helper('kiyoh')->__('Are you sure you want to cleanup logfiles?'),
41+
)
42+
);
43+
44+
}
45+
46+
}
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
<?php
2+
/**
3+
* Magmodules.eu - http://www.magmodules.eu
4+
*
5+
* NOTICE OF LICENSE
6+
* This source file is subject to the Open Software License (OSL 3.0)
7+
* that is bundled with this package in the file LICENSE.txt.
8+
* It is also available through the world-wide-web at this URL:
9+
* http://opensource.org/licenses/osl-3.0.php
10+
* If you did not receive a copy of the license and are unable to
11+
* obtain it through the world-wide-web, please send an email
12+
* to [email protected] so we can send you a copy immediately.
13+
*
14+
* @category Magmodules
15+
* @package Magmodules_Kiyoh
16+
* @author Magmodules <[email protected])
17+
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
18+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
*/
20+
21+
class Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog_Grid extends Mage_Adminhtml_Block_Widget_Grid
22+
{
23+
24+
/**
25+
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog_Grid constructor.
26+
*/
27+
public function __construct()
28+
{
29+
parent::__construct();
30+
$this->setId('kiyohlogGrid');
31+
$this->setDefaultSort('date');
32+
$this->setDefaultDir('DESC');
33+
$this->setSaveParametersInSession(true);
34+
}
35+
36+
/**
37+
* @return mixed
38+
*/
39+
protected function _prepareCollection()
40+
{
41+
$collection = Mage::getModel('kiyoh/log')->getCollection();
42+
$this->setCollection($collection);
43+
return parent::_prepareCollection();
44+
}
45+
46+
/**
47+
* @return mixed
48+
*/
49+
protected function _prepareColumns()
50+
{
51+
$this->addColumn(
52+
'company', array(
53+
'header' => Mage::helper('kiyoh')->__('Shop'),
54+
'index' => 'company',
55+
'width' => '120px',
56+
)
57+
);
58+
59+
$this->addColumn(
60+
'type', array(
61+
'header' => Mage::helper('kiyoh')->__('Type'),
62+
'align' => 'left',
63+
'index' => 'type',
64+
'width' => '120',
65+
'type' => 'options',
66+
'options' => array(
67+
'reviews' => Mage::helper('kiyoh')->__('Reviews'),
68+
'invitation' => Mage::helper('kiyoh')->__('Invitation Call'),
69+
),
70+
)
71+
);
72+
73+
if (Mage::app()->getRequest()->getParam('showapiurl')) {
74+
$this->addColumn(
75+
'api_url', array(
76+
'header' => Mage::helper('kiyoh')->__('Api URL'),
77+
'align' => 'left',
78+
'index' => 'api_url',
79+
'filter' => false,
80+
'sortable' => false,
81+
)
82+
);
83+
}
84+
85+
$this->addColumn(
86+
'qty', array(
87+
'header' => Mage::helper('kiyoh')->__('Description'),
88+
'align' => 'left',
89+
'index' => 'qty',
90+
'renderer' => 'kiyoh/adminhtml_widget_grid_log',
91+
'filter' => false,
92+
'sortable' => false,
93+
)
94+
);
95+
96+
$this->addColumn(
97+
'cron', array(
98+
'header' => Mage::helper('kiyoh')->__('Cron'),
99+
'align' => 'left',
100+
'index' => 'cron',
101+
'width' => '120',
102+
'type' => 'options',
103+
'options' => array(
104+
'' => Mage::helper('kiyoh')->__('Manual'),
105+
'stats' => Mage::helper('kiyoh')->__('Stats Cron'),
106+
'reviews' => Mage::helper('kiyoh')->__('Reviews Cron'),
107+
'orderupdate' => Mage::helper('kiyoh')->__('Invitation'),
108+
),
109+
)
110+
);
111+
112+
$this->addColumn(
113+
'time', array(
114+
'header' => Mage::helper('kiyoh')->__('Time'),
115+
'align' => 'left',
116+
'index' => 'time',
117+
'width' => '60',
118+
'renderer' => 'kiyoh/adminhtml_widget_grid_seconds',
119+
)
120+
);
121+
122+
$this->addColumn(
123+
'date', array(
124+
'header' => Mage::helper('kiyoh')->__('Date'),
125+
'align' => 'left',
126+
'type' => 'datetime',
127+
'index' => 'date',
128+
'width' => '140',
129+
)
130+
);
131+
132+
return parent::_prepareColumns();
133+
}
134+
135+
/**
136+
* @return $this
137+
*/
138+
protected function _prepareMassaction()
139+
{
140+
$this->setMassactionIdField('id');
141+
$this->getMassactionBlock()->setFormFieldName('logids');
142+
143+
$this->getMassactionBlock()->addItem(
144+
'hide', array(
145+
'label' => Mage::helper('kiyoh')->__('Delete'),
146+
'url' => $this->getUrl('*/*/massDelete'),
147+
)
148+
);
149+
return $this;
150+
}
151+
152+
/**
153+
* @param $row
154+
*
155+
* @return string
156+
*/
157+
public function getRowUrl($row)
158+
{
159+
return false;
160+
}
161+
162+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Magmodules.eu - http://www.magmodules.eu
4+
*
5+
* NOTICE OF LICENSE
6+
* This source file is subject to the Open Software License (OSL 3.0)
7+
* that is bundled with this package in the file LICENSE.txt.
8+
* It is also available through the world-wide-web at this URL:
9+
* http://opensource.org/licenses/osl-3.0.php
10+
* If you did not receive a copy of the license and are unable to
11+
* obtain it through the world-wide-web, please send an email
12+
* to [email protected] so we can send you a copy immediately.
13+
*
14+
* @category Magmodules
15+
* @package Magmodules_Kiyoh
16+
* @author Magmodules <[email protected])
17+
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
18+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
*/
20+
21+
class Magmodules_Kiyoh_Block_Adminhtml_Kiyohreviews extends Mage_Adminhtml_Block_Widget_Grid_Container
22+
{
23+
24+
/**
25+
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohreviews constructor.
26+
*/
27+
public function __construct()
28+
{
29+
$this->_controller = 'adminhtml_kiyohreviews';
30+
$this->_blockGroup = 'kiyoh';
31+
$this->_headerText = Mage::helper('kiyoh')->__('Kiyoh Reviews');
32+
33+
parent::__construct();
34+
35+
$this->_removeButton('add');
36+
$this->_addButton(
37+
'module_controller', array(
38+
'label' => Mage::helper('kiyoh')->__('Delete all reviews'),
39+
'onclick' => "setLocation('{$this->getUrl('adminhtml/kiyohreviews/truncate')}')",
40+
'confirm' => Mage::helper('kiyoh')->__('Are you sure you want to delete all reviews?'),
41+
)
42+
);
43+
44+
}
45+
46+
}

0 commit comments

Comments
 (0)