MageWare_CustomerLockdown - Version 1.1.0.0

Version Notes

Public release-1.1.0.0

Download this release

Release Info

Developer MageWare
Extension MageWare_CustomerLockdown
Version 1.1.0.0
Comparing to
See all releases


Code changes from version 1.0.0.0 to 1.1.0.0

app/code/community/MageWare/CustomerLockdown/Model/Attribute/Backend/Data/Boolean.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class MageWare_CustomerLockdown_Model_Attribute_Backend_Data_Boolean
4
+ extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
5
+ {
6
+ public function beforeSave($customer)
7
+ {
8
+ $attributeName = $this->getAttribute()->getName();
9
+ $inputValue = $customer->getData($attributeName);
10
+ $sanitizedValue = (!empty($inputValue)) ? '1' : '0';
11
+ $customer->setData($attributeName, $sanitizedValue);
12
+
13
+ return $this;
14
+ }
15
+ }
app/code/community/MageWare/CustomerLockdown/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <MageWare_CustomerLockdown>
5
- <version>1.0.0.0</version>
6
  </MageWare_CustomerLockdown>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <MageWare_CustomerLockdown>
5
+ <version>1.1.0.0</version>
6
  </MageWare_CustomerLockdown>
7
  </modules>
8
  <global>
app/code/community/MageWare/CustomerLockdown/sql/customerlockdown_setup/upgrade-1.0.0.0-1.1.0.0.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->updateAttribute('customer', 'is_suspended', 'backend_model', 'customerlockdown/attribute_backend_data_boolean');
8
+
9
+ $installer->endSetup();
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageWare_CustomerLockdown</name>
4
- <version>1.0.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Allows to suspend customer accounts.</summary>
10
  <description>Allows to suspend customer accounts.</description>
11
- <notes>Public release-1.0.0.0</notes>
12
  <authors><author><name>MageWare</name><user>mageware</user><email>magentocommerce@mageware.co</email></author></authors>
13
- <date>2013-03-30</date>
14
- <time>14:11:36</time>
15
- <contents><target name="magecommunity"><dir name="MageWare"><dir name="CustomerLockdown"><dir name="Helper"><file name="Data.php" hash="88b2e4df974eca1cb634d0dc318ebe2e"/></dir><dir name="Model"><file name="Observer.php" hash="db9e10c8e617a772d9855fcb77b813f5"/><dir name="Resource"><file name="Setup.php" hash="280d6078581b87bed3e5e5242e33d39e"/></dir></dir><dir name="etc"><file name="config.xml" hash="5d403117ffa0338d727bc42e5ea4242e"/></dir><dir name="sql"><dir name="customerlockdown_setup"><file name="install-1.0.0.0.php" hash="3823a857b0dd7a486dc305d1715c6ced"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MageWare_CustomerLockdown.xml" hash="f71bd6392569939baad704f52f718d80"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MageWare_CustomerLockdown.csv" hash="aef675b49a07a7211bffd5e10f1a80ca"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_All_Latest</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageWare_CustomerLockdown</name>
4
+ <version>1.1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Allows to suspend customer accounts.</summary>
10
  <description>Allows to suspend customer accounts.</description>
11
+ <notes>Public release-1.1.0.0</notes>
12
  <authors><author><name>MageWare</name><user>mageware</user><email>magentocommerce@mageware.co</email></author></authors>
13
+ <date>2013-04-16</date>
14
+ <time>15:00:07</time>
15
+ <contents><target name="magecommunity"><dir name="MageWare"><dir name="CustomerLockdown"><dir name="Helper"><file name="Data.php" hash="88b2e4df974eca1cb634d0dc318ebe2e"/></dir><dir name="Model"><dir name="Attribute"><dir name="Backend"><dir name="Data"><file name="Boolean.php" hash="976c857b5f9a1d17fe44431c7b4e5755"/></dir></dir></dir><file name="Observer.php" hash="db9e10c8e617a772d9855fcb77b813f5"/><dir name="Resource"><file name="Setup.php" hash="280d6078581b87bed3e5e5242e33d39e"/></dir></dir><dir name="etc"><file name="config.xml" hash="e737f2723f2c6df47f6c44d1aaa9d33d"/></dir><dir name="sql"><dir name="customerlockdown_setup"><file name="install-1.0.0.0.php" hash="3823a857b0dd7a486dc305d1715c6ced"/><file name="upgrade-1.0.0.0-1.1.0.0.php" hash="5ea7ad65cd5306cd47889554187ce1a7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MageWare_CustomerLockdown.xml" hash="f71bd6392569939baad704f52f718d80"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MageWare_CustomerLockdown.csv" hash="aef675b49a07a7211bffd5e10f1a80ca"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_All_Latest</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
18
  </package>