Lexity_Live - Version 1.3.3

Version Notes

get api key refactor

Download this release

Release Info

Developer Lexity
Extension Lexity_Live
Version 1.3.3
Comparing to
See all releases


Code changes from version 1.3.1 to 1.3.3

app/code/local/LexityLive/Model/Core.php CHANGED
@@ -14,22 +14,10 @@ class LexityLive_Model_Core extends Mage_Core_Model_Config {
14
  die($message);
15
  }
16
 
17
- public function has_lexity_user() {
18
- $resource = Mage::getSingleton('core/resource');
19
- $readConnection = $resource->getConnection('core_read');
20
- $tableName = $resource->getTableName('api/user');
21
- $results = $readConnection->fetchALL("SELECT * FROM api_user where username = 'lexity_live' LIMIT 1");
22
- return isset($results[0]);
23
- }
24
-
25
  public function get_api_key() {
26
- if ($this->has_lexity_user()) {
27
- $user = Mage::getModel('api/user');
28
- $user->loadByUsername('lexity_live');
29
- return $user->getApiKey();
30
- } else {
31
- return null;
32
- }
33
  }
34
 
35
  public function check_credentials() {
14
  die($message);
15
  }
16
 
 
 
 
 
 
 
 
 
17
  public function get_api_key() {
18
+ $user = Mage::getModel('api/user');
19
+ $user->loadByUsername('lexity_live');
20
+ return $user->getApiKey();
 
 
 
 
21
  }
22
 
23
  public function check_credentials() {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lexity_Live</name>
4
- <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license>BSD License</license>
7
  <channel>community</channel>
@@ -12,11 +12,11 @@ Lexity Live is a free website traffic analysis tool designed for ecommerce, with
12
  <description>Get smart, actionable marketing insights&#xD;
13
  &#xD;
14
  Find out your top keywords, top referring sites, and more at a glance with Lexity Live Insights. Lexity Live Insights automatically analyzes your store visit data and summarizes it into clear, simple takeaways so you get smart and actionable marketing recommendations.</description>
15
- <notes>Stable</notes>
16
  <authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
17
- <date>2013-03-05</date>
18
- <time>19:15:51</time>
19
- <contents><target name="magelocal"><dir name="LexityLive"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="b20058385d1974f6daedd2893f50098b"/><dir name="Tab"><file name="Form.php" hash="866003a7e71db8f8d50bc408bf36b6f9"/></dir><file name="Tabs.php" hash="241d7d1d600e17fcbcb18935e23c4f65"/></dir><file name="Edit.php" hash="bbfe316a81e6ec669f05adb637e10732"/></dir></dir><file name="Embed.php" hash="a59f226f8050ce73e8bb40de2cdb4290"/></dir><dir name="Helper"><file name="Data.php" hash="81b07c4eb066f3f6ca74ac7f288ea3d1"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="0ca1f11c4dbd825832c0141d0a8103bf"/></dir><file name="Core.php" hash="7448fbd8dcc7296108e79e38af597cac"/><dir name="Order"><file name="Api.php" hash="793c3381f2b330162edff20d032aa87a"/></dir></dir><dir name="controllers"><file name="MarketingController.php" hash="0fccf277778b923a1101fb54bd7b8dd3"/></dir><dir name="etc"><file name="api.xml" hash="2839f8ced7d210be5d75616876de301b"/><file name="config.xml" hash="8a3987f8fd91f852f1813990c88b7e8d"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LexityLive.xml" hash="90f47f9fefe55580e1e77f118100c3a1"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="lexitylive"><file name="credentials.phtml" hash="2b19db0cf4ba77c5b92bf2f4179f462b"/><file name="embed.phtml" hash="da1d6ab67226389dfdcd186ecbe376fd"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lexity_Live</name>
4
+ <version>1.3.3</version>
5
  <stability>stable</stability>
6
  <license>BSD License</license>
7
  <channel>community</channel>
12
  <description>Get smart, actionable marketing insights&#xD;
13
  &#xD;
14
  Find out your top keywords, top referring sites, and more at a glance with Lexity Live Insights. Lexity Live Insights automatically analyzes your store visit data and summarizes it into clear, simple takeaways so you get smart and actionable marketing recommendations.</description>
15
+ <notes>get api key refactor</notes>
16
  <authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
17
+ <date>2013-07-03</date>
18
+ <time>23:45:20</time>
19
+ <contents><target name="magelocal"><dir name="LexityLive"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="b20058385d1974f6daedd2893f50098b"/><dir name="Tab"><file name="Form.php" hash="866003a7e71db8f8d50bc408bf36b6f9"/></dir><file name="Tabs.php" hash="241d7d1d600e17fcbcb18935e23c4f65"/></dir><file name="Edit.php" hash="bbfe316a81e6ec669f05adb637e10732"/></dir></dir><file name="Embed.php" hash="a59f226f8050ce73e8bb40de2cdb4290"/></dir><dir name="Helper"><file name="Data.php" hash="81b07c4eb066f3f6ca74ac7f288ea3d1"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="0ca1f11c4dbd825832c0141d0a8103bf"/></dir><file name="Core.php" hash="580fbcbb62f85def5f0ff70189e1b58e"/><dir name="Order"><file name="Api.php" hash="793c3381f2b330162edff20d032aa87a"/></dir></dir><dir name="controllers"><file name="MarketingController.php" hash="0fccf277778b923a1101fb54bd7b8dd3"/></dir><dir name="etc"><file name="api.xml" hash="2839f8ced7d210be5d75616876de301b"/><file name="config.xml" hash="8a3987f8fd91f852f1813990c88b7e8d"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LexityLive.xml" hash="90f47f9fefe55580e1e77f118100c3a1"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="lexitylive"><file name="credentials.phtml" hash="2b19db0cf4ba77c5b92bf2f4179f462b"/><file name="embed.phtml" hash="da1d6ab67226389dfdcd186ecbe376fd"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>