<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>phparmory</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -58,21 +58,14 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
          */
         var $cacheID = 0;
 
-        /**#@-*/
         /**
-        * The Constructor
-        *
-        * This function is called when the object is created. It has
-        * three optional parameters. The first sets the base url of
-        * the Armory website that will be used to fetch the serialized
-        * XML data. The second sets whether data will be stored in
-        * flat files or a mysql database. The third indicates how
-        * long a cached XML query should be kept before updating.
-        *
-        * @param string     $armoryArea     URL of the Armory website
-        * @param integer    $retries        Time (in seconds) between cache updates
-        */
-        function __construct($areaName = NULL, $downloadRetries = NULL) {
+         * WordPressArmoryCache class constructor.
+         * @access      public
+         * @param       string      $areaName
+         * @param       int         $downloadRetries
+         * @return      mixed       $result                 Returns TRUE if the class could be instantiated properly. Returns FALSE and an error string, if the class could not be instantiated.
+         */
+        public function __construct($areaName = NULL, $downloadRetries = NULL) {
 
             global $wpdb;
 
@@ -109,18 +102,17 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         * @return string[]                  An associative array
         * @param string     $character      The name of the character
         * @param string     $realm          The character's realm
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function getCharacterData($characterName = NULL, $realmName = NULL) {
+        public function getCharacterData($characterName = NULL, $realmName = NULL) {
 
-            if(($character==NULL)&amp;&amp;($this-&gt;character)) $character = $this-&gt;character;
-            if(($realm==NULL)&amp;&amp;($this-&gt;realm)) $realm = $this-&gt;realm;
+            if(($characterName==NULL)&amp;&amp;($this-&gt;characterName)) $characterName = $this-&gt;characterName;
+            if(($realmName==NULL)&amp;&amp;($this-&gt;realmName)) $realmName = $this-&gt;realmName;
 
-            $this-&gt;cacheID = &quot;c&quot;.md5($character.$realm);
+            $this-&gt;cacheID = &quot;c&quot;.md5($characterName.$realmName);
             $cached = $this-&gt;cacheFetch($this-&gt;cacheID);
 
             if (!is_array($cached)) {
-                $cached = parent::getCharacterData($character, $realm);
+                $cached = parent::getCharacterData($characterName, $realmName);
 
                 if ( $this-&gt;cacheID ) {
                     $scached = serialize($cached);
@@ -144,18 +136,17 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         * @return string[]                  An associative array
         * @param string     $guild          The name of the guild
         * @param string     $realm          The guild's realm
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function getGuildData($guildName = NULL, $realmName = NULL) {
+        public function getGuildData($guildName = NULL, $realmName = NULL) {
 
-            if(($guild==NULL)&amp;&amp;($this-&gt;guild)) $guild = $this-&gt;guild;
-            if(($realm==NULL)&amp;&amp;($this-&gt;realm)) $realm = $this-&gt;realm;
+            if(($guildName==NULL)&amp;&amp;($this-&gt;guildName)) $guildName = $this-&gt;guildName;
+            if(($realmName==NULL)&amp;&amp;($this-&gt;realmName)) $realm = $this-&gt;realmName;
 
-            $this-&gt;cacheID = &quot;g&quot;.md5($guild.$realm);
+            $this-&gt;cacheID = &quot;g&quot;.md5($guildName.$realmName);
             $cached = $this-&gt;cacheFetch($this-&gt;cacheID);
 
             if (!is_array($cached)) {
-                $cached = parent::getGuildData($guild, $realm);
+                $cached = parent::getGuildData($guildName, $realmName);
 
                 if ( $this-&gt;cacheID ) {
                     $scached = serialize($cached);
@@ -178,9 +169,8 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         *
         * @return string[]                  An associative array
         * @param integer    $itemID         The ID of the item
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function getItemData($itemID) {
+        public function getItemData($itemID) {
 
             $this-&gt;cacheID = &quot;i&quot;.md5($itemID);
             $cached = $this-&gt;cacheFetch($this-&gt;cacheID);
@@ -210,19 +200,18 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         * @return string[]                  An associative array
         * @param string     $item           The name of the item
         * @param string[]   $filter         Associative array of search parameters
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function getItemDataByName($itemName, $filter = NULL) {
+        public function getItemDataByName($itemName, $filter = NULL) {
 
             if ($filter&amp;&amp;is_array($filter)) {
-                $this-&gt;cacheID = &quot;s&quot;.md5($item.implode('', $filter));
+                $this-&gt;cacheID = &quot;s&quot;.md5($itemName.implode('', $filter));
             } else {
-                $this-&gt;cacheID = &quot;s&quot;.md5($item);
+                $this-&gt;cacheID = &quot;s&quot;.md5($itemName);
             }
             $cached = $this-&gt;cacheFetch($this-&gt;cacheID);
 
             if (!is_array($cached)) {
-                $cached = parent::getItemDataByName($item, $filter);
+                $cached = parent::getItemDataByName($itemName, $filter);
 
                 if ( $this-&gt;cacheID ) {
                     $scached = serialize($cached);
@@ -238,33 +227,6 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         }
 
         /**
-        * xmlFetch
-        *
-        * This fetches the XML data as normal by calling
-        * the parent function. If a cache id is set, it will
-        * save the XML data to the cache and then unset the id.
-        *
-        * @param string     $url            URL of the page to fetch data from
-        * @param string     $userAgent      The user agent making the GET request
-        * @param integer    $timeout        The connection timeout in seconds
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
-        */
-        function getXmlData($url, $userAgent = NULL, $timeOut = NULL) {
-
-            $xml = parent::getXmlData($url, $userAgent, $timeOut);
-
-            /*  disabled.
-             * if ( $this-&gt;cacheID ) {
-             *     $this-&gt;cacheSave($this-&gt;cacheID, $xml);
-             *     unset($this-&gt;cacheID);
-             * }
-             */
-
-            return $xml['XmlData'];
-
-        }
-
-        /**
         * cacheFetch
         *
         * This function returns the unserialized XML data
@@ -274,9 +236,8 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         *
         * @return string[]                  An associative array
         * @param string     $cacheID        The ID of the cached thing
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function cacheFetch($cacheID) {
+        public function cacheFetch($cacheID) {
 
             global $wpdb;
 
@@ -291,7 +252,7 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
                     $results = $wpdb-&gt;query( $query );
                 } else {
                     // Return the cached XML as an array
-                    return $this-&gt;xmlToArray(mysql_result($result, 0, 'cache_xml'));
+                    return $this-&gt;convertXmlToArray(mysql_result($result, 0, 'cache_xml'));
                 }
             }
         }
@@ -304,9 +265,8 @@ if (!class_exists(&quot;WordPressArmoryCache&quot;)) {
         *
         * @param string     $cacheID        The ID of the cached thing
         * @param string     $xml            The XML info to be saved
-        * @author Claire Matthews &lt;poeticdragon@stormblaze.net&gt;
         */
-        function cacheSave($cacheID, $xml) {
+        public function cacheSave($cacheID, $xml) {
 
             global $wpdb;
 </diff>
      <filename>wow-armory.php</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>phparmory/.ditz-config</filename>
    </removed>
    <removed>
      <filename>phparmory/.ditz/issue-02d02b8c02cd9025d66c182a12eaef9d5fba2825.yaml</filename>
    </removed>
    <removed>
      <filename>phparmory/.ditz/issue-2e896012cdd59ce98128597491a79e2e0435b456.yaml</filename>
    </removed>
    <removed>
      <filename>phparmory/.ditz/issue-2ebcc6a19eab29e8f2c3d5de877f591033608ac5.yaml</filename>
    </removed>
    <removed>
      <filename>phparmory/.ditz/issue-47a7edc14a9e427035c5cd1a0f71d92b4b43d4bc.yaml</filename>
    </removed>
    <removed>
      <filename>phparmory/.ditz/project.yaml</filename>
    </removed>
    <removed>
      <filename>phparmory/.gitignore</filename>
    </removed>
    <removed>
      <filename>phparmory/ChangeLog</filename>
    </removed>
    <removed>
      <filename>phparmory/LICENSE</filename>
    </removed>
    <removed>
      <filename>phparmory/README</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/blank.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/classtrees_phpArmory.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/elementindex.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/elementindex_phpArmory.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/errors.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/index.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/li_phpArmory.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/media/banner.css</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/media/stylesheet.css</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/packages.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/phpArmory/_phpArmory.class.php.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/phpArmory/_phpArmoryCache.class.php.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/phpArmory/classes/phpArmory5.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/phpArmory/classes/phpArmory5Cache.html</filename>
    </removed>
    <removed>
      <filename>phparmory/doc/todolist.html</filename>
    </removed>
    <removed>
      <filename>phparmory/examples/characterData.php4</filename>
    </removed>
    <removed>
      <filename>phparmory/examples/guildData.php4</filename>
    </removed>
    <removed>
      <filename>phparmory/examples/item-by-id.php4</filename>
    </removed>
    <removed>
      <filename>phparmory/examples/item-by-name.php4</filename>
    </removed>
    <removed>
      <filename>phparmory/examples/test.php5</filename>
    </removed>
    <removed>
      <filename>phparmory/phpArmory.class.php</filename>
    </removed>
    <removed>
      <filename>phparmory/phpArmoryCache.class.php</filename>
    </removed>
    <removed>
      <filename>phparmory/phpArmoryCache.class.php4</filename>
    </removed>
    <removed>
      <filename>phparmory/status/blue-check.png</filename>
    </removed>
    <removed>
      <filename>phparmory/status/component-Documentation.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/component-Examples.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/component-phpArmory class.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/component-phpArmoryCache class.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/component-phparmory.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/green-bar.png</filename>
    </removed>
    <removed>
      <filename>phparmory/status/green-check.png</filename>
    </removed>
    <removed>
      <filename>phparmory/status/index.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/issue-02d02b8c02cd9025d66c182a12eaef9d5fba2825.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/issue-2e896012cdd59ce98128597491a79e2e0435b456.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/issue-2ebcc6a19eab29e8f2c3d5de877f591033608ac5.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/issue-47a7edc14a9e427035c5cd1a0f71d92b4b43d4bc.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/red-check.png</filename>
    </removed>
    <removed>
      <filename>phparmory/status/release-phpArmory 0.3.2.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/release-phpArmory 0.4.0.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/release-phpArmory 0.5.0.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/style.css</filename>
    </removed>
    <removed>
      <filename>phparmory/status/unassigned.html</filename>
    </removed>
    <removed>
      <filename>phparmory/status/yellow-bar.png</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a145f4dd4f5ddaefa13d78f6ccfb68895d9940a6</id>
    </parent>
  </parents>
  <author>
    <name>Daniel S. Reichenbach</name>
    <email>shiendra@marenkay.com</email>
  </author>
  <url>http://github.com/marenkay/wow-armory/commit/de935392b9ffa91f0ef7e1398c1b4afb48b85e8f</url>
  <id>de935392b9ffa91f0ef7e1398c1b4afb48b85e8f</id>
  <committed-date>2008-11-19T11:42:25-08:00</committed-date>
  <authored-date>2008-11-19T11:42:25-08:00</authored-date>
  <message>Now works with phpArmory 0.4.0-rc1.</message>
  <tree>5a9d213ee1f9ef0345bbc88a9f0e4720f2b13ae6</tree>
  <committer>
    <name>Daniel S. Reichenbach</name>
    <email>shiendra@marenkay.com</email>
  </committer>
</commit>
