public static function Update($keyID, $vCode) { // Get the characters for this key $characters = BaseApi::findKeyCharacters($keyID); // Check if this key has any characters associated with it if (!$characters) { return; } // Next, start our loop over the characters and call Seat\EveApi\Eve\CharacterInfo // to handle the character updating foreach ($characters as $characterID) { \Seat\EveApi\Eve\CharacterInfo::Update((int) $characterID, $keyID, $vCode); } return null; }
public function getPublic($characterID) { // Firstly we will call the character info updator worker \Seat\EveApi\Eve\CharacterInfo::Update((int) $characterID); // Get the information from the database now $character_info = DB::table('eve_characterinfo')->where('characterID', $characterID)->first(); $employment_history = DB::table('eve_characterinfo_employmenthistory')->where('characterID', $characterID)->get(); // Finally, give all this to the view to handle return View::make('character.public')->with('character_info', $character_info)->with('employment_history', $employment_history); }