Marenkay.com

Kogito is coming soon!

developer, father, gamer, and nerd.

phpArmory 0.4.2 – “Fishing Extravaganza” released

This release should fix issues with character that could not be retrieved from the armory due to special characters in realm or character names, as reported by several users. There have been some minor tweaks to existing functions. Further details, the download it after the jump.

0.4.2 – “Fishing Extravaganza” – Dec 17, 2008

This release should fix issues with character that could not be retrieved from the armory due to special characters in realm or character names.

Bugs squashed

  • phpArmory5Cache: the setCachedData(…) function was called without prior checks if there was any valid data to cache. This has been fixed.
  • phpArmory5: Strings used in URLs do not need a manual replacement of the space character. urlencode() handles this for us already.
  • phpArmory5: fixed an issue in __construct, where required PHP extension have not been checked properly. Thanks to Gizzmo for the hint.

Features added

  • phpArmory5: added getAnyData($searchType = NULL, $objectName = NULL, $filter = NULL). $searchType can be any of “arenateams”, “characters”, “guilds”, “items”. $filter needs to be an associative array of filter properties. For now, try out the armory item search page to see valid filter options.
  • phpArmory5: added a third parameter to getCharacterData for retrieving only the basic character data. Defaults to false. Use the following to get basic character data only:

    $character = $phpArmory->getCharacterData($characterName = "Char", $realmName = "Realm", $onlyBasicData = true)
    

Download

Enjoy the 0.4.2 release, and either grab phparmory-0.4.2.zip or phparmory-0.4.2.tar.gz. Please note that all PHP files are formatted with Unix line endings, as I am mostly a Linux / Mac geek.

Feel free to leave a comment if you should end up having trouble with the classes. phparmory-042tar

Category: Programming

Tagged: , , ,

5 Responses

  1. Grimtorn says:

    Received the following error after installing your addon in WordPress 2.7…

    Warning: include_once(/home/******/public_html/wp-content/plugins/phpArmory-0.4.2/) [function.include-once]: failed to open stream: Success in /home/******/public_html/wp-settings.php on line 465

    Warning: include_once() [function.include]: Failed opening ‘/home/******/public_html/wp-content/plugins/phpArmory-0.4.2/’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/******/public_html/wp-settings.php on line 465

  2. Bart says:

    It seems the script has trouble retrieving data for players and guilds with special characters in them.

    For example: Guild Kärna on Detheroc US will not show up.

    Is there an easy fix for this?

  3. Adhe says:

    Hello! Great script. I got it working almost perfectly til I tried to integrate it onto my main site. At first I made a function out of the characterData.php provided and it worked great, but when I try to use that function on the site (as opposed to just in that php file) it just spews out a lot of notices about undefined index. It didn’t do this before however when I was just using characterData.php. The undefined errors are about phpArmory.class.php, about a billion times around line 350. Any way to fix this without turning off error reporting on php?

    • Adhe says:

      Oh nevermind I guess. It stopped giving errors when I actually put the function in the index file instead of including the function from another file for some reason. Oh well!

Welcome

Marenkay.com is the home of Daniel S. Reichenbach, an application developer, father, gamer, and IT nerd.

In his blog Daniel deals with common and uncommon issues of application development, development processes and application deployment. As certified nerd, a bit of gaming in the mix can't hurt.

Pages