Esempio n. 1
0
 function reverse_ids()
 {
     $sys = new EVESystem($this->system_id);
     $this->system = $sys->getName;
     $this->security = $sys->getSecurity();
     $this->region = $sys->getRegionName();
     $this->constellation = $sys->getConstellationName();
     $this->victim->reverse_ids();
     $this->killer->reverse_ids();
     foreach (array_keys($this->destroyed) as $k) {
         $this->destroyed[$k]->reverse_ids();
     }
     foreach (array_keys($this->attackers) as $k) {
         $this->attackers[$k]->reverse_ids();
     }
 }
Esempio n. 2
0
<?php

require_once 'lib/fortissimo.php';
require_once 'lib/EVESystem.php';
$test = new EVESystem(30003808);
echo "got {$test} - " . $test->getName() . " - " . $test->getConstellationName() . " - " . $test->getRegionName() . " <br />";
echo "okay new test - " . EVESystem::getName(30003808) . "<br />";
echo "if those are both Grispire, you're golden <tt>:)</tt><br />";
echo "test again - " . $test->getId() . " should be 30003808<br />";
echo "this should be too - " . EVESystem::getId('Grispire') . "<br />";