Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding documentation and examples in the class

  • Loading branch information...
commit a545dd156fba9d07405870a853a98d324c97bc75 1 parent 0fc3e0e
Martin Aarhof authored
Showing with 3,354 additions and 27 deletions.
  1. +25 −15 README
  2. +71 −12 library/Maa/Analytics.php
  3. +52 −0 library/Maa/Analytics/Ecommerce.php
  4. +17 −0 library/Maa/Analytics/Ecommerce/Abstract.php
  5. +17 −0 library/Maa/Analytics/Ecommerce/Item.php
  6. +440 −0 public/doc/Maa_Analytics/Maa_Analytics.html
  7. +606 −0 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce.html
  8. +417 −0 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html
  9. +409 −0 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce_Item.html
  10. +98 −0 public/doc/Maa_Analytics/_Analytics---Ecommerce---Abstract.php.html
  11. +98 −0 public/doc/Maa_Analytics/_Analytics---Ecommerce---Item.php.html
  12. +98 −0 public/doc/Maa_Analytics/_Analytics---Ecommerce.php.html
  13. +98 −0 public/doc/Maa_Analytics/_Analytics.php.html
  14. +58 −0 public/doc/classtrees_Maa_Analytics.html
  15. +222 −0 public/doc/elementindex.html
  16. +245 −0 public/doc/elementindex_Maa_Analytics.html
  17. +50 −0 public/doc/errors.html
  18. +69 −0 public/doc/index.html
  19. +69 −0 public/doc/li_Maa_Analytics.html
  20. BIN  public/doc/media/background.png
  21. BIN  public/doc/media/empty.png
  22. +195 −0 public/doc/media/style.css
View
40 README
@@ -1,28 +1,38 @@
-== Setup ==
-= Requirements =
-Zend_Framework 1.11.3 (hope that newer versions also works with this code:)
-Requires PHP 5.3.x
-Small modifications to Bootstrap and application.ini
-
-= Bootstrap =
-There are few things that needed for this to run
+h1. Setup
+
+h2. Requirements
+
+p. Zend_Framework 1.11.3 (hope that newer versions also works with this code:)
+* Requires PHP 5.3.x
+* Small modifications to Bootstrap and application.ini
+
+h2. Bootstrap
+
+p. There are few things that needed for this to run
In our application/Bootstrap.php we need to add this method
-protected function _initConfig()
+@protected function _initConfig()
{
$config = new Zend_Config($this->getOptions(), true);
Zend_Registry::set('config', $config);
return $config;
-}
+}@
-Thats because I dont see any other "shortcuts" to get the Zend_Config application.ini data
+p. Thats because I dont see any other "shortcuts" to get the Zend_Config application.ini data
+
+h2. application.ini
-= application.ini =
In our application/configs/application.ini
we need the following
-autoloadernamespaces[] = Maa
+@autoloadernamespaces[] = Maa@
+
+p. So the Directory can be found
+
+h2. Examples
+
+p. Now library/Maa/_examples/application.ini.sample for more configuration
-So the Directory can be found
+p. For a an working example see application/layouts/scripts/layout.phtml
-Now @see application.ini.sample for more configuration
+p. For documentation see public/doc/index.html
View
83 library/Maa/Analytics.php
@@ -1,9 +1,49 @@
<?php
+/**
+ * Analytics for Zend Framework
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ * @version Version 0.1a
+ */
+/**
+ * Maa_Analytics is a class to create analytics javascript code
+ *
+ * An example of the config and how to load it
+ * <code>
+ * $c = new Maa_Analytics;
+ * // Now our application.ini is loaded
+ * $c->loadConfig(
+ * new Zend_Config_Ini($this->baseUrl() . '../application/configs/test.ini', 'production')
+ * );
+ * // Here we load another config file
+ * $c->loadConfig(
+ * new Zend_Config_Ini($this->baseUrl() . '../application/configs/test1.ini', 'production')
+ * new Zend_Config_Ini($this->baseUrl() . '../application/configs/test2.ini', 'production')
+ * );
+ * // And here we load 2 more
+ * </code>
+ *
+ * And to get the javascript code just simple print it
+ * <code>
+ * echo $c;
+ * </code>
+ *
+ * @see _examples/application.ini.sample for all configuration to the application.ini file
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ */
class Maa_Analytics
{
/**
+ * Placeholder for our configs
* @var Zend_Config
*/
protected $config = array();
@@ -15,7 +55,8 @@ class Maa_Analytics
protected $accountCode = array();
/**
- * Our google code push - needs to be here, the different code should be in right order
+ * Our google code push - needs to be here,
+ * the different code should be in right order
* @var array
*/
protected $pushArray = array(
@@ -40,10 +81,14 @@ class Maa_Analytics
// Cross Domain
'_setDomainName' => null,
'_setAllowLinker' => null,
- // Session Timeout http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SessionTimeout
- // Sources http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SearchEngines
- // Tracking Limited to a Sub-Directory http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SetCookiePath
- // Using a Local Server http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#UsingALocalServer
+ // Session Timeout
+ // http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SessionTimeout
+ // Sources
+ // http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SearchEngines
+ // Tracking Limited to a Sub-Directory
+ // http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SetCookiePath
+ // Using a Local Server
+ // http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#UsingALocalServer
// Tracker
'_trackPageview' => '',
// Economic
@@ -53,12 +98,17 @@ class Maa_Analytics
);
+ /**
+ * Our constructor
+ * Will maybe be removed by time, and replaced by a getInstance()
+ */
public function __construct() {
}
/**
- * Building and outputting our Analytics code, and loading all methods starting with _set
+ * Building and outputting our Analytics code,
+ * and loading all methods starting with _set
* @return string
*/
public function __toString()
@@ -81,17 +131,22 @@ public function __toString()
}
break;
case '':
- $out[] = "_gaq.push(['" . $key . "']);"; break;
+ $out[] = "_gaq.push(['" . $key . "']);";
+ break;
default:
- $out[] = "_gaq.push(['" . $key . "', '" . $value . "']);"; break;
+ $out[] = "_gaq.push(['" . $key . "', '" . $value . "']);";
+ break;
}
}
$out = "var _gaq = _gaq || [];\n" . implode("\n", $out) . "\n";
- $out .= "\n(function() {\n\tvar ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n\t";
+ $out .= "\n(function() {\n\t";
+ $out .= "var ga = document.createElement('script');";
+ $out .= "ga.type = 'text/javascript'; ga.async = true;\n\t";
$out .= "ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n\t";
- $out .= "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n";
+ $out .= "var s = document.getElementsByTagName('script')[0];";
+ $out .= "s.parentNode.insertBefore(ga, s);\n";
$out .= "})();";
return $out;
@@ -206,7 +261,9 @@ private function _setAccountCode()
}
/**
- * Here we can load other Zend_Configs - Please be aware that the LAST added will overwrite if the config was added in another config
+ * Here we can load other Zend_Configs
+ * Please be aware that the LAST added will overwrite
+ * if the config was added in another config
* @param Zend_Config, Zend_Config, ...
* @return Maa_Analytics
* @throws Exception
@@ -226,7 +283,9 @@ public function loadConfigs()
}
/**
- * Here we can load one other Zend_Config - Please be aware that the LAST added will overwrite if the config was added in another config
+ * Here we can load one other Zend_Config
+ * Please be aware that the LAST added will overwrite
+ * if the config was added in another config
* @param Zend_Config
* @return Maa_Analytics
*/
View
52 library/Maa/Analytics/Ecommerce.php
@@ -1,5 +1,57 @@
<?php
+/**
+ * Analytics for Zend Framework
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ * @version Version 0.1a
+ */
+/**
+ * Maa_Analytics_Ecommerce to create ecommerce tracking code to our analytics code
+ *
+ * Playing with orders
+ * <code>
+ * $object = new Maa_Analytics;
+ * $order = new Maa_Analytics_Ecommerce( (string)$ordernumber , (float)$totalamount);
+ * $order->setStorename( (string)$storename );
+ * $order->setTax( (float)$tax );
+ * $order->setShipping( (float)$amount )
+ * ->setCity( (string)$city )
+ * ->setState( (string)$state )
+ * ->setCountry( (string)$country );
+ * // All methods are chainable
+ * </code>
+ *
+ * Adding some Items to our order
+ * <code>
+ * $item = new Maa_Analytics_Ecommerce_Item( (float)$unitprice , (int)$quantity );
+ * $item->setSku( (string)$sku )->setProductname( (string)$productname )->setCategory( (string)$category );
+ * $order->addItem($item);
+ * </code>
+ *
+ * "Fast" creating of our item and adding to our order
+ * <code>
+ * $option1 = array('Sku' => '2', 'Productname' => 'Sweater', 'Category' => 'Yellow');
+ * $option2 = array('sku' => '3', 'productname' => 'DVD', 'category' => 'Spiderman');
+ * $order->addItems(
+ * new Maa_Analytics_Ecommerce_Item((float)$unitprice , (int)$quantity, $option1),
+ * new Maa_Analytics_Ecommerce_Item((float)$unitprice , (int)$quantity, $option2)
+ * );
+ * </code>
+ *
+ * And to get the javascript code just simple print it
+ * <code>
+ * echo $object;
+ * </code>
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ */
class Maa_Analytics_Ecommerce
extends Maa_Analytics_Ecommerce_Abstract
{
View
17 library/Maa/Analytics/Ecommerce/Abstract.php
@@ -1,5 +1,22 @@
<?php
+/**
+ * Analytics for Zend Framework
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ * @version Version 0.1a
+ */
+/**
+ * Maa_Analytics_Abstract
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ */
abstract class Maa_Analytics_Ecommerce_Abstract
{
View
17 library/Maa/Analytics/Ecommerce/Item.php
@@ -1,5 +1,22 @@
<?php
+/**
+ * Analytics for Zend Framework
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ * @version Version 0.1a
+ */
+/**
+ * Maa_Analytics_Item to create our items for our Maa_Analytics_Ecommerce
+ *
+ * @category Zend_Framework
+ * @package Maa_Analytics
+ * @author Martin Aarhof <martin.aarhof@gmail.com>
+ * @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License.
+ */
class Maa_Analytics_Ecommerce_Item
extends Maa_Analytics_Ecommerce_Abstract
{
View
440 public/doc/Maa_Analytics/Maa_Analytics.html
@@ -0,0 +1,440 @@
+<html>
+<head>
+<title>Docs For Class Maa_Analytics</title>
+<link rel="stylesheet" type="text/css" href="../media/style.css">
+</head>
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
+ <tr>
+ <td class="header_top">Maa_Analytics</td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+ <tr>
+ <td class="header_menu">
+
+
+ [ <a href="../classtrees_Maa_Analytics.html" class="menu">class tree: Maa_Analytics</a> ]
+ [ <a href="../elementindex_Maa_Analytics.html" class="menu">index: Maa_Analytics</a> ]
+ [ <a href="../elementindex.html" class="menu">all elements</a> ]
+ </td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+</table>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td width="200" class="menu">
+ <b>Packages:</b><br />
+ <a href="../li_Maa_Analytics.html">Maa_Analytics</a><br />
+ <br /><br />
+ <b>Files:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Abstract.php.html"> Abstract.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics.php.html"> Analytics.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce.php.html"> Ecommerce.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Item.php.html"> Item.php
+ </a><br>
+ </div><br />
+
+
+ <b>Classes:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a><br />
+ </div>
+ </td>
+ <td>
+ <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
+
+<h1>Class: Maa_Analytics</h1>
+Source Location: /Analytics.php<br /><br />
+
+
+<table width="100%" border="0">
+<tr><td valign="top">
+
+<h3><a href="#class_details">Class Overview</a></h3>
+<pre></pre><br />
+<div class="description">Maa_Analytics is a class to create analytics javascript code</div><br /><br />
+<h4>Author(s):</h4>
+<ul>
+ <li>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</li>
+ </ul>
+
+
+
+
+
+
+
+</td>
+
+<td valign="top">
+<h3><a href="#class_vars">Variables</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#var$accountCode">$accountCode</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#var$config">$config</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#var$pushArray">$pushArray</a></li>
+ </ul>
+</td>
+
+
+<td valign="top">
+<h3><a href="#class_methods">Methods</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#method__construct">__construct</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#methodaddOrder">addOrder</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#methodloadConfig">loadConfig</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#methodloadConfigs">loadConfigs</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics.html#method__toString">__toString</a></li>
+ </ul>
+</td>
+
+</tr></table>
+<hr />
+
+<table width="100%" border="0"><tr>
+
+
+
+
+
+
+</tr></table>
+<hr />
+
+<a name="class_details"></a>
+<h3>Class Details</h3>
+<div class="tags">
+[line 42]<br />
+Maa_Analytics is a class to create analytics javascript code<br /><br /><p>An example of the config and how to load it <ol><li><div class="src-line">&nbsp;<span class="src-var">$c&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a></span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;Now&nbsp;our&nbsp;application.ini&nbsp;is&nbsp;loaded</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$c</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics.html#methodloadConfig">loadConfig</a><span class="src-sym">(</span></div></li>
+<li><div class="src-line">&nbsp;&nbsp;&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id">Zend_Config_Ini</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">baseUrl</span><span class="src-sym">(</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">'../application/configs/test.ini'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'production'</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;Here&nbsp;we&nbsp;load&nbsp;another&nbsp;config&nbsp;file</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$c</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics.html#methodloadConfig">loadConfig</a><span class="src-sym">(</span></div></li>
+<li><div class="src-line">&nbsp;&nbsp;&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id">Zend_Config_Ini</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">baseUrl</span><span class="src-sym">(</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">'../application/configs/test1.ini'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'production'</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;&nbsp;&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id">Zend_Config_Ini</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">baseUrl</span><span class="src-sym">(</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">'../application/configs/test2.ini'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'production'</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;And&nbsp;here&nbsp;we&nbsp;load&nbsp;2&nbsp;more</span></div></li>
+</ol></p><p>And to get the javascript code just simple print it <ol><li><div class="src-line">&nbsp;echo&nbsp;<span class="src-var">$c</span><span class="src-sym">;</span></div></li>
+</ol></p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>author:</b>&nbsp;&nbsp;</td><td>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</td>
+ </tr>
+ <tr>
+ <td><b>see:</b>&nbsp;&nbsp;</td><td>_examples/application.ini.sample for all configuration to the application.ini file</td>
+ </tr>
+ <tr>
+ <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License.</a></td>
+ </tr>
+</table>
+</div>
+</div><br /><br />
+<div class="top">[ <a href="#top">Top</a> ]</div><br />
+
+<hr />
+<a name="class_vars"></a>
+<h3>Class Variables</h3>
+<div class="tags">
+ <a name="var$accountCode"></a>
+ <p></p>
+ <h4>$accountCode = <span class="value">array()</span></h4>
+ <p>[line 55]</p>
+ Will be used at another time - for multiple accounts<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>array</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+ <a name="var$config"></a>
+ <p></p>
+ <h4>$config = <span class="value">array()</span></h4>
+ <p>[line 49]</p>
+ Placeholder for our configs<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>Zend_Config</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+ <a name="var$pushArray"></a>
+ <p></p>
+ <h4>$pushArray = <span class="value">array(<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Account<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setAccount'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Browser<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setClientInfo'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setAllowHash'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setDetectFlash'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setDetectTitle'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Campaign<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setAllowAnchor'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampContentKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampMediumKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampNameKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampNOKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampSourceKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampTermKey'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampaignTrack'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setCampaignCookieTimeout'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setReferrerOverride'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Cross&nbsp;Domain<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setDomainName'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_setAllowLinker'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Session&nbsp;Timeout&nbsp;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SessionTimeout<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Sources&nbsp;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SearchEngines<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Tracking&nbsp;Limited&nbsp;to&nbsp;a&nbsp;Sub-Directory<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#SetCookiePath<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Using&nbsp;a&nbsp;Local&nbsp;Server<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;http://code.google.com/intl/da/apis/analytics/docs/tracking/asyncMigrationExamples.html#UsingALocalServer<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Tracker<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_trackPageview'&nbsp;=&gt;&nbsp;'',<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Economic<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_addTrans'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_addItem'&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'_trackTrans'&nbsp;=&gt;&nbsp;null<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;)</span></h4>
+ <p>[line 62]</p>
+ Our google code push - needs to be here,<br /><br /><p>the different code should be in right order</p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>array</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+</div><br />
+
+<hr />
+<a name="class_methods"></a>
+<h3>Class Methods</h3>
+<div class="tags">
+
+ <hr />
+ <a name="method__construct"></a>
+ <h3>constructor __construct <span class="smalllinenumber">[line 105]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>Maa_Analytics __construct(
+)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Our constructor<br /><br /><p>Will maybe be removed by time, and replaced by a getInstance()</p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodaddOrder"></a>
+ <h3>method addOrder <span class="smalllinenumber">[line 160]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a> addOrder(
+<a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a>
+$order)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Method to add a order to the push<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a>&nbsp;&nbsp;</td>
+ <td><b>$order</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodloadConfig"></a>
+ <h3>method loadConfig <span class="smalllinenumber">[line 292]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a> loadConfig(
+
+$config)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Here we can load one other Zend_Config<br /><br /><p>Please be aware that the LAST added will overwrite if the config was added in another config</p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">Zend_Config&nbsp;&nbsp;</td>
+ <td><b>$config</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodloadConfigs"></a>
+ <h3>method loadConfigs <span class="smalllinenumber">[line 271]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a> loadConfigs(
+Zend_Config,
+0)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Here we can load other Zend_Configs<br /><br /><p>Please be aware that the LAST added will overwrite if the config was added in another config</p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>throws:</b>&nbsp;&nbsp;</td><td>Exception</td>
+ </tr>
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">Zend_Config,&nbsp;&nbsp;</td>
+ <td><b>0</b>&nbsp;&nbsp;</td>
+ <td>Zend_Config, ...</td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="method__toString"></a>
+ <h3>method __toString <span class="smalllinenumber">[line 114]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>string __toString(
+)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Building and outputting our Analytics code,<br /><br /><p>and loading all methods starting with _set</p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+</div><br />
+
+
+ <div class="credit">
+ <hr />
+ Documentation generated on Wed, 24 Aug 2011 16:12:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
+ </div>
+ </td></tr></table>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
View
606 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce.html
@@ -0,0 +1,606 @@
+<html>
+<head>
+<title>Docs For Class Maa_Analytics_Ecommerce</title>
+<link rel="stylesheet" type="text/css" href="../media/style.css">
+</head>
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
+ <tr>
+ <td class="header_top">Maa_Analytics</td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+ <tr>
+ <td class="header_menu">
+
+
+ [ <a href="../classtrees_Maa_Analytics.html" class="menu">class tree: Maa_Analytics</a> ]
+ [ <a href="../elementindex_Maa_Analytics.html" class="menu">index: Maa_Analytics</a> ]
+ [ <a href="../elementindex.html" class="menu">all elements</a> ]
+ </td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+</table>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td width="200" class="menu">
+ <b>Packages:</b><br />
+ <a href="../li_Maa_Analytics.html">Maa_Analytics</a><br />
+ <br /><br />
+ <b>Files:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Abstract.php.html"> Abstract.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics.php.html"> Analytics.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce.php.html"> Ecommerce.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Item.php.html"> Item.php
+ </a><br>
+ </div><br />
+
+
+ <b>Classes:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a><br />
+ </div>
+ </td>
+ <td>
+ <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
+
+<h1>Class: Maa_Analytics_Ecommerce</h1>
+Source Location: /Analytics/Ecommerce.php<br /><br />
+
+
+<table width="100%" border="0">
+<tr><td valign="top">
+
+<h3><a href="#class_details">Class Overview</a></h3>
+<pre><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a>
+ |
+ --Maa_Analytics_Ecommerce</pre><br />
+<div class="description">Maa_Analytics_Ecommerce to create ecommerce tracking code to our analytics code</div><br /><br />
+<h4>Author(s):</h4>
+<ul>
+ <li>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</li>
+ </ul>
+
+
+
+
+
+
+
+</td>
+
+<td valign="top">
+<h3><a href="#class_vars">Variables</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#var$_data">$_data</a></li>
+ </ul>
+</td>
+
+
+<td valign="top">
+<h3><a href="#class_methods">Methods</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#method__construct">__construct</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodaddItem">addItem</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodaddItems">addItems</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetCity">setCity</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetCountry">setCountry</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetShipping">setShipping</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetState">setState</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetStorename">setStorename</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetTax">setTax</a></li>
+ </ul>
+</td>
+
+</tr></table>
+<hr />
+
+<table width="100%" border="0"><tr>
+
+
+
+
+<td valign="top">
+<h3>Inherited Variables</h3>
+<div class="tags">
+<h4>Class: <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a></h4>
+<dl>
+<dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$calcsum">Maa_Analytics_Ecommerce_Abstract::$calcsum</a>
+ </dt>
+<dd>
+
+</dd>
+<dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$totalamount">Maa_Analytics_Ecommerce_Abstract::$totalamount</a>
+ </dt>
+<dd>
+
+</dd>
+</dl>
+</div>
+</td>
+
+<td valign="top">
+<h3>Inherited Methods</h3>
+<div class="tags">
+<h4>Class: <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a></h4>
+<dl>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodadd">Maa_Analytics_Ecommerce_Abstract::add()</a>
+ </dt>
+ <dd>
+ Add info data to our array
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodcheckSum">Maa_Analytics_Ecommerce_Abstract::checkSum()</a>
+ </dt>
+ <dd>
+ Function to check if the calculated sum = total amount
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetData">Maa_Analytics_Ecommerce_Abstract::getData()</a>
+ </dt>
+ <dd>
+ Get data from the data array
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetItems">Maa_Analytics_Ecommerce_Abstract::getItems()</a>
+ </dt>
+ <dd>
+ Get the items to our order
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodsetSum">Maa_Analytics_Ecommerce_Abstract::setSum()</a>
+ </dt>
+ <dd>
+ Setting our calculated sum
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#method__toString">Maa_Analytics_Ecommerce_Abstract::__toString()</a>
+ </dt>
+ <dd>
+ Build our info
+ </dd>
+ </dl>
+</div>
+</td>
+
+</tr></table>
+<hr />
+
+<a name="class_details"></a>
+<h3>Class Details</h3>
+<div class="tags">
+[line 55]<br />
+Maa_Analytics_Ecommerce to create ecommerce tracking code to our analytics code<br /><br /><p>Playing with orders <ol><li><div class="src-line">&nbsp;<span class="src-var">$object&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a></span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a></span><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$ordernumber&nbsp;</span><span class="src-sym">,&nbsp;</span>(float)<span class="src-var">$totalamount</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetStorename">setStorename</a><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$storename&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetTax">setTax</a><span class="src-sym">(&nbsp;</span>(float)<span class="src-var">$tax&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetShipping">setShipping</a><span class="src-sym">(&nbsp;</span>(float)<span class="src-var">$amount&nbsp;</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetCity">setCity</a><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$city&nbsp;</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetState">setState</a><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$state&nbsp;</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodsetCountry">setCountry</a><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$country&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;All&nbsp;methods&nbsp;are&nbsp;chainable</span></div></li>
+</ol></p><p>Adding some Items to our order <ol><li><div class="src-line">&nbsp;<span class="src-var">$item&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a></span><span class="src-sym">(&nbsp;</span>(float)<span class="src-var">$unitprice&nbsp;</span><span class="src-sym">,&nbsp;</span>(int)<span class="src-var">$quantity&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$item</span><span class="src-sym">-&gt;</span><span class="src-id">setSku</span><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$sku&nbsp;</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">setProductname</span><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$productname&nbsp;</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">setCategory</span><span class="src-sym">(&nbsp;</span>(string)<span class="src-var">$category&nbsp;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodaddItem">addItem</a><span class="src-sym">(</span><span class="src-var">$item</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+</ol></p><p>&quot;Fast&quot; creating of our item and adding to our order <ol><li><div class="src-line">&nbsp;<span class="src-var">$option1&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'Sku'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'2'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Productname'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'Sweater'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Category'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'Yellow'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$option2&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'sku'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'3'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'productname'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'DVD'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'category'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'Spiderman'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-var">$order</span><span class="src-sym">-&gt;</span><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html#methodaddItems">addItems</a><span class="src-sym">(</span></div></li>
+<li><div class="src-line">&nbsp;&nbsp;&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a></span><span class="src-sym">(</span>(float)<span class="src-var">$unitprice&nbsp;</span><span class="src-sym">,&nbsp;</span>(int)<span class="src-var">$quantity</span><span class="src-sym">,&nbsp;</span><span class="src-var">$option1</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li>
+<li><div class="src-line">&nbsp;&nbsp;&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a></span><span class="src-sym">(</span>(float)<span class="src-var">$unitprice&nbsp;</span><span class="src-sym">,&nbsp;</span>(int)<span class="src-var">$quantity</span><span class="src-sym">,&nbsp;</span><span class="src-var">$option2</span><span class="src-sym">)</span></div></li>
+<li><div class="src-line">&nbsp;<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
+</ol></p><p>And to get the javascript code just simple print it <ol><li><div class="src-line">&nbsp;echo&nbsp;<span class="src-var">$object</span><span class="src-sym">;</span></div></li>
+</ol></p><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>author:</b>&nbsp;&nbsp;</td><td>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</td>
+ </tr>
+ <tr>
+ <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License.</a></td>
+ </tr>
+</table>
+</div>
+</div><br /><br />
+<div class="top">[ <a href="#top">Top</a> ]</div><br />
+
+<hr />
+<a name="class_vars"></a>
+<h3>Class Variables</h3>
+<div class="tags">
+ <a name="var$_data"></a>
+ <p></p>
+ <h4>$_data = <span class="value">array(<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'info'&nbsp;=&gt;&nbsp;array(<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;=&gt;&nbsp;null,<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),'items'=&gt;array())</span></h4>
+ <p>[line 63]</p>
+ Our data - looks odd, but the codes should come in right order for correct data to analytics<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>array</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+</div><br />
+
+<hr />
+<a name="class_methods"></a>
+<h3>Class Methods</h3>
+<div class="tags">
+
+ <hr />
+ <a name="method__construct"></a>
+ <h3>constructor __construct <span class="smalllinenumber">[line 83]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> __construct(
+string
+$orderId, float
+$totalamount)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Start our order info<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$orderId</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td class="type">float&nbsp;&nbsp;</td>
+ <td><b>$totalamount</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodaddItem"></a>
+ <h3>method addItem <span class="smalllinenumber">[line 157]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> addItem(
+<a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a>
+$item)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Add item to our order<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a>&nbsp;&nbsp;</td>
+ <td><b>$item</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodaddItems"></a>
+ <h3>method addItems <span class="smalllinenumber">[line 169]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> addItems(
+<a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a>
+$item,)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Add items to our order<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type"><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a>&nbsp;&nbsp;</td>
+ <td><b>$item,</b>&nbsp;&nbsp;</td>
+ <td>@param Maa_Analytics_Ecommerce_Item $item, ...</td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetCity"></a>
+ <h3>method setCity <span class="smalllinenumber">[line 127]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setCity(
+string
+$city)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set city<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$city</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetCountry"></a>
+ <h3>method setCountry <span class="smalllinenumber">[line 147]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setCountry(
+string
+$country)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set country<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$country</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetShipping"></a>
+ <h3>method setShipping <span class="smalllinenumber">[line 116]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setShipping(
+float
+$amount)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set shipping<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">float&nbsp;&nbsp;</td>
+ <td><b>$amount</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetState"></a>
+ <h3>method setState <span class="smalllinenumber">[line 137]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setState(
+string
+$state)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set state or province<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$state</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetStorename"></a>
+ <h3>method setStorename <span class="smalllinenumber">[line 95]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setStorename(
+string
+$store)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set affiliation or store name<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$store</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetTax"></a>
+ <h3>method setTax <span class="smalllinenumber">[line 105]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a> setTax(
+float
+$amount)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Set tax<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">float&nbsp;&nbsp;</td>
+ <td><b>$amount</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+</div><br />
+
+
+ <div class="credit">
+ <hr />
+ Documentation generated on Wed, 24 Aug 2011 16:12:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
+ </div>
+ </td></tr></table>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
View
417 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html
@@ -0,0 +1,417 @@
+<html>
+<head>
+<title>Docs For Class Maa_Analytics_Ecommerce_Abstract</title>
+<link rel="stylesheet" type="text/css" href="../media/style.css">
+</head>
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
+ <tr>
+ <td class="header_top">Maa_Analytics</td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+ <tr>
+ <td class="header_menu">
+
+
+ [ <a href="../classtrees_Maa_Analytics.html" class="menu">class tree: Maa_Analytics</a> ]
+ [ <a href="../elementindex_Maa_Analytics.html" class="menu">index: Maa_Analytics</a> ]
+ [ <a href="../elementindex.html" class="menu">all elements</a> ]
+ </td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+</table>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td width="200" class="menu">
+ <b>Packages:</b><br />
+ <a href="../li_Maa_Analytics.html">Maa_Analytics</a><br />
+ <br /><br />
+ <b>Files:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Abstract.php.html"> Abstract.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics.php.html"> Analytics.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce.php.html"> Ecommerce.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Item.php.html"> Item.php
+ </a><br>
+ </div><br />
+
+
+ <b>Classes:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a><br />
+ </div>
+ </td>
+ <td>
+ <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
+
+<h1>Class: Maa_Analytics_Ecommerce_Abstract</h1>
+Source Location: /Analytics/Ecommerce/Abstract.php<br /><br />
+
+
+<table width="100%" border="0">
+<tr><td valign="top">
+
+<h3><a href="#class_details">Class Overview</a></h3>
+<pre></pre><br />
+<div class="description">Maa_Analytics_Abstract</div><br /><br />
+<h4>Author(s):</h4>
+<ul>
+ <li>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</li>
+ </ul>
+
+
+
+
+
+
+
+</td>
+
+<td valign="top">
+<h3><a href="#class_vars">Variables</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$calcsum">$calcsum</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$totalamount">$totalamount</a></li>
+ </ul>
+</td>
+
+
+<td valign="top">
+<h3><a href="#class_methods">Methods</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodadd">add</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodcheckSum">checkSum</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetData">getData</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetItems">getItems</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodsetSum">setSum</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#method__toString">__toString</a></li>
+ </ul>
+</td>
+
+</tr></table>
+<hr />
+
+<table width="100%" border="0"><tr>
+
+
+<td valign="top">
+<h3>Child classes:</h3>
+<div class="tags">
+<dl>
+<dt><a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a></dt>
+ <dd>Maa_Analytics_Ecommerce to create ecommerce tracking code to our analytics code</dd>
+</dl>
+<dl>
+<dt><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a></dt>
+ <dd>Maa_Analytics_Item to create our items for our Maa_Analytics_Ecommerce</dd>
+</dl>
+</div>
+</td>
+
+
+
+
+</tr></table>
+<hr />
+
+<a name="class_details"></a>
+<h3>Class Details</h3>
+<div class="tags">
+[line 20]<br />
+Maa_Analytics_Abstract<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>author:</b>&nbsp;&nbsp;</td><td>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</td>
+ </tr>
+ <tr>
+ <td><b>abstract:</b>&nbsp;&nbsp;</td><td></td>
+ </tr>
+ <tr>
+ <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License.</a></td>
+ </tr>
+</table>
+</div>
+</div><br /><br />
+<div class="top">[ <a href="#top">Top</a> ]</div><br />
+
+<hr />
+<a name="class_vars"></a>
+<h3>Class Variables</h3>
+<div class="tags">
+ <a name="var$calcsum"></a>
+ <p></p>
+ <h4>$calcsum = <span class="value">&nbsp;0</span></h4>
+ <p>[line 33]</p>
+ Calculated amount of order (items price * qty + tax + shipping)<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>float</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+ <a name="var$totalamount"></a>
+ <p></p>
+ <h4>$totalamount = <span class="value">&nbsp;0</span></h4>
+ <p>[line 27]</p>
+ Total amount of order<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+
+ <br />
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>Type:</b>&nbsp;&nbsp;</td>
+ <td>float</td>
+ </tr>
+ </table>
+ </div><br /><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div><br />
+</div><br />
+
+<hr />
+<a name="class_methods"></a>
+<h3>Class Methods</h3>
+<div class="tags">
+
+ <hr />
+ <a name="methodadd"></a>
+ <h3>method add <span class="smalllinenumber">[line 41]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a> add(
+int
+$id, string
+$data)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Add info data to our array<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">int&nbsp;&nbsp;</td>
+ <td><b>$id</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td class="type">string&nbsp;&nbsp;</td>
+ <td><b>$data</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodcheckSum"></a>
+ <h3>method checkSum <span class="smalllinenumber">[line 74]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>bool checkSum(
+)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Function to check if the calculated sum = total amount<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>throws:</b>&nbsp;&nbsp;</td><td>Exception</td>
+ </tr>
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodgetData"></a>
+ <h3>method getData <span class="smalllinenumber">[line 52]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>string getData(
+int
+$key)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Get data from the data array<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">int&nbsp;&nbsp;</td>
+ <td><b>$key</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodgetItems"></a>
+ <h3>method getItems <span class="smalllinenumber">[line 99]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>array getItems(
+)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Get the items to our order<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="methodsetSum"></a>
+ <h3>method setSum <span class="smalllinenumber">[line 63]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a> setSum(
+float
+$amount, [int
+$qty = 1])</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Setting our calculated sum<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <h4>Parameters:</h4>
+ <div class="tags">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="type">float&nbsp;&nbsp;</td>
+ <td><b>$amount</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td class="type">int&nbsp;&nbsp;</td>
+ <td><b>$qty</b>&nbsp;&nbsp;</td>
+ <td></td>
+ </tr>
+ </table>
+ </div><br />
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+ <hr />
+ <a name="method__toString"></a>
+ <h3>method __toString <span class="smalllinenumber">[line 89]</span></h3>
+ <div class="function">
+ <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
+ <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
+ <code>string __toString(
+)</code>
+ </td></tr></table>
+ </td></tr></table><br />
+
+ Build our info<br /><br /><br /><br />
+<h4>Tags:</h4>
+<div class="tags">
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
+ </tr>
+</table>
+</div>
+<br /><br />
+
+
+ <div class="top">[ <a href="#top">Top</a> ]</div>
+ </div>
+</div><br />
+
+
+ <div class="credit">
+ <hr />
+ Documentation generated on Wed, 24 Aug 2011 16:12:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
+ </div>
+ </td></tr></table>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
View
409 public/doc/Maa_Analytics/Maa_Analytics_Ecommerce_Item.html
@@ -0,0 +1,409 @@
+<html>
+<head>
+<title>Docs For Class Maa_Analytics_Ecommerce_Item</title>
+<link rel="stylesheet" type="text/css" href="../media/style.css">
+</head>
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
+ <tr>
+ <td class="header_top">Maa_Analytics</td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+ <tr>
+ <td class="header_menu">
+
+
+ [ <a href="../classtrees_Maa_Analytics.html" class="menu">class tree: Maa_Analytics</a> ]
+ [ <a href="../elementindex_Maa_Analytics.html" class="menu">index: Maa_Analytics</a> ]
+ [ <a href="../elementindex.html" class="menu">all elements</a> ]
+ </td>
+ </tr>
+ <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
+</table>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td width="200" class="menu">
+ <b>Packages:</b><br />
+ <a href="../li_Maa_Analytics.html">Maa_Analytics</a><br />
+ <br /><br />
+ <b>Files:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Abstract.php.html"> Abstract.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics.php.html"> Analytics.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce.php.html"> Ecommerce.php
+ </a><br>
+ <a href="../Maa_Analytics/_Analytics---Ecommerce---Item.php.html"> Item.php
+ </a><br>
+ </div><br />
+
+
+ <b>Classes:</b><br />
+ <div class="package">
+ <a href="../Maa_Analytics/Maa_Analytics.html">Maa_Analytics</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce.html">Maa_Analytics_Ecommerce</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a><br />
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html">Maa_Analytics_Ecommerce_Item</a><br />
+ </div>
+ </td>
+ <td>
+ <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
+
+<h1>Class: Maa_Analytics_Ecommerce_Item</h1>
+Source Location: /Analytics/Ecommerce/Item.php<br /><br />
+
+
+<table width="100%" border="0">
+<tr><td valign="top">
+
+<h3><a href="#class_details">Class Overview</a></h3>
+<pre><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a>
+ |
+ --Maa_Analytics_Ecommerce_Item</pre><br />
+<div class="description">Maa_Analytics_Item to create our items for our Maa_Analytics_Ecommerce</div><br /><br />
+<h4>Author(s):</h4>
+<ul>
+ <li>Martin Aarhof &lt;<a href="mailto:martin.aarhof@gmail.com">martin.aarhof@gmail.com</a>&gt;</li>
+ </ul>
+
+
+
+
+
+
+
+</td>
+
+<td valign="top">
+<h3><a href="#class_vars">Variables</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html#var$_data">$_data</a></li>
+ </ul>
+</td>
+
+
+<td valign="top">
+<h3><a href="#class_methods">Methods</a></h3>
+<ul>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html#method__construct">__construct</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html#methodsetCategory">setCategory</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html#methodsetProductname">setProductname</a></li>
+ <li><a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Item.html#methodsetSku">setSku</a></li>
+ </ul>
+</td>
+
+</tr></table>
+<hr />
+
+<table width="100%" border="0"><tr>
+
+
+
+
+<td valign="top">
+<h3>Inherited Variables</h3>
+<div class="tags">
+<h4>Class: <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a></h4>
+<dl>
+<dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$calcsum">Maa_Analytics_Ecommerce_Abstract::$calcsum</a>
+ </dt>
+<dd>
+
+</dd>
+<dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#var$totalamount">Maa_Analytics_Ecommerce_Abstract::$totalamount</a>
+ </dt>
+<dd>
+
+</dd>
+</dl>
+</div>
+</td>
+
+<td valign="top">
+<h3>Inherited Methods</h3>
+<div class="tags">
+<h4>Class: <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html">Maa_Analytics_Ecommerce_Abstract</a></h4>
+<dl>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodadd">Maa_Analytics_Ecommerce_Abstract::add()</a>
+ </dt>
+ <dd>
+ Add info data to our array
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodcheckSum">Maa_Analytics_Ecommerce_Abstract::checkSum()</a>
+ </dt>
+ <dd>
+ Function to check if the calculated sum = total amount
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetData">Maa_Analytics_Ecommerce_Abstract::getData()</a>
+ </dt>
+ <dd>
+ Get data from the data array
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodgetItems">Maa_Analytics_Ecommerce_Abstract::getItems()</a>
+ </dt>
+ <dd>
+ Get the items to our order
+ </dd>
+ <dt>
+ <a href="../Maa_Analytics/Maa_Analytics_Ecommerce_Abstract.html#methodsetSum