asset testing
This commit is contained in:
@@ -121,10 +121,10 @@ class GetAssetsCommand extends Command
|
|||||||
for($i = 1; $i < $pages; $i++) {
|
for($i = 1; $i < $pages; $i++) {
|
||||||
$currentPage = $i;
|
$currentPage = $i;
|
||||||
|
|
||||||
$aHelper = new AssetHelper($charId, $corpId);
|
$aHelper = new AssetHelper($charId, $corpId, $currentPage);
|
||||||
|
|
||||||
//Get a page of assets
|
//Get a page of assets
|
||||||
$assets = $aHelper->GetAssetsByPage($currentPage);
|
$assets = $aHelper->GetAssetsByPage();
|
||||||
|
|
||||||
foreach($assets as $asset) {
|
foreach($assets as $asset) {
|
||||||
$aHelper->StoreNewAsset($asset);
|
$aHelper->StoreNewAsset($asset);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class AssetHelper {
|
|||||||
/**
|
/**
|
||||||
* Get Assets By Page in order to store in the database
|
* Get Assets By Page in order to store in the database
|
||||||
*/
|
*/
|
||||||
public function GetAssetsByPage($page) {
|
public function GetAssetsByPage() {
|
||||||
// Disable all caching by setting the NullCache as the
|
// Disable all caching by setting the NullCache as the
|
||||||
// preferred cache handler. By default, Eseye will use the
|
// preferred cache handler. By default, Eseye will use the
|
||||||
// FileCache.
|
// FileCache.
|
||||||
@@ -54,7 +54,7 @@ class AssetHelper {
|
|||||||
]);
|
]);
|
||||||
//Setup the ESI variable
|
//Setup the ESI variable
|
||||||
$esi = new Eseye($authentication);
|
$esi = new Eseye($authentication);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$assets = $esi->page($this->page)
|
$assets = $esi->page($this->page)
|
||||||
->invoke('get', '/corporations/{corporation_id}/assets', [
|
->invoke('get', '/corporations/{corporation_id}/assets', [
|
||||||
|
|||||||
Reference in New Issue
Block a user