Advertisement
dragonrun1

CharacterAffiliation_test.php

Jul 2nd, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4.  * junk_ca_test.php
  5.  *
  6.  * PHP version 5.4
  7.  *
  8.  * @since  20150702 12:20
  9.  * @author Michael Cummings <mgcummings@yahoo.com>
  10.  */
  11. use Yapeal\Container\PimpleContainer;
  12. use Yapeal\Database\Eve\CharacterAffiliation;
  13. use Yapeal\Xml\EveApiXmlData;
  14. use Yapeal\Yapeal;
  15.  
  16. require_once __DIR__ . '/bin/bootstrap.php';
  17. $dic = new PimpleContainer();
  18. $yapeal = new Yapeal($dic);
  19. $ids = '92168909,1188435724,196379789,126891489,587971565';
  20. $interval = 900;
  21. $data = new EveApiXmlData('CharacterAffiliation', 'eve', ['ids' => $ids]);
  22. $ca = new CharacterAffiliation(
  23.     $dic['Yapeal.Database.Connection'],
  24.     $dic['Yapeal.Log.Logger'],
  25.     $dic['Yapeal.Database.CommonQueries']
  26. );
  27. $ca->oneShot(
  28.     $data,
  29.     $dic['Yapeal.Xml.Retriever'],
  30.     $dic['Yapeal.Xml.Preserver'],
  31.     $interval
  32. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement