Navigation
Item Database
Tools |
Evecorplogo
DescriptionFunction allows you to create Corporation Logo based API Corporation Sheet. Function accepts data in form of raw XML string, SimpleXMLElment object or array. InstallationFunction requires logo image pack. Either set EVE_CORPLOGO_GLYPHDIR to pack directory, or name directory "corplogos" and put it to same location as library. No other installation required. RequirementsLibrary has been developed and tested in PHP 5.2. Library requires GD module. DocumentationDocumentation is in form of phpdoc within library. ExampleThe following is a simple example how to display logo.
<?php
define('EVE_CORPLOGO_GLYPHDIR', "wherever/you/put/corplogos/");
require('evecorplogo.php');
//use your favorite [[API|api]] library to fetch xml;
$xml = CorpCorporationSheet($userID, $apiKey, $characterID);
//set header for direct output
header('Content-Type: image/png');
//and put image to output
echo EVECorpLogo($xml, 64);
//but honestly, i would recomend to save image first
LinksTop Contributors For This Page |
||||||||||||||||||||||||||||||||||||||||||||
About EVElopedia
EVE Online
CCP Games
Website Terms of Service
Privacy Policy
|
|||||||||||||||||||||||||||||||||||||||||||||