本文整理汇总了PHP中Api::getCharacters方法的典型用法代码示例。如果您正苦于以下问题:PHP Api::getCharacters方法的具体用法?PHP Api::getCharacters怎么用?PHP Api::getCharacters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Api
的用法示例。
在下文中一共展示了Api::getCharacters方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
// If only NPC's are on the mail give them credit for top damage...
if ($topDamage == null) {
$topDamage = $first;
}
}
$extra = array();
// And now give all the arrays and whatnots to twig..
if ($pageview == 'overview') {
$extra['items'] = Detail::combineditems(md5($id), $killdata['items']);
$extra['invAll'] = involvedCorpsAndAllis(md5($id), $killdata['involved']);
$extra['involved'] = $involved;
$extra['allinvolved'] = $allinvolved;
}
if ($pageview == 'comments') {
$extra['cmtChars'] = Api::getCharacters($userID);
$extra['cmtChars'][] = array('characterID' => 0, 'characterName' => 'Anonymous');
}
$extra['totalisk'] = $killdata['info']['zkb']['totalValue'];
$extra['droppedisk'] = droppedIsk(md5($id), $killdata['items']);
$extra['lostisk'] = $killdata['info']['zkb']['totalValue'] - $extra['droppedisk'];
$extra['fittedisk'] = fittedIsk(md5($id), $killdata['items']);
$extra['relatedtime'] = date('YmdH00', strtotime($killdata['info']['dttm']));
$extra['fittingwheel'] = Detail::eftarray(md5($id), $killdata['items'], @$killdata['victim']['characterID']);
$extra['involvedships'] = involvedships($killdata['involved']);
$extra['involvedshipscount'] = count($extra['involvedships']);
$extra['totalprice'] = usdeurgbp($killdata['info']['zkb']['totalValue']);
$extra['destroyedprice'] = usdeurgbp($extra['lostisk']);
$extra['droppedprice'] = usdeurgbp($extra['droppedisk']);
$extra['fittedprice'] = usdeurgbp($extra['fittedisk']);
$extra['shipprice'] = Price::getItemPrice($killdata['victim']['shipTypeID'], date('Ymd', strtotime($killdata['info']['dttm'])));
示例2: array
// Style
$data['stylesAvailable'] = Util::availableStyles();
$data['currentStyle'] = UserConfig::get('style');
$data['apiKeys'] = Api::getKeys($userID);
$data['apiChars'] = Api::getCharacters($userID);
$charKeys = Api::getCharacterKeys($userID);
$charKeys = Info::addInfo($charKeys);
$data['apiCharKeys'] = $charKeys;
$data['userInfo'] = User::getUserInfo();
$data['timeago'] = UserConfig::get('timeago');
$data['ddcombine'] = UserConfig::get('ddcombine');
$data['ddmonthyear'] = UserConfig::get('ddmonthyear');
$data['useSummaryAccordion'] = UserConfig::get('useSummaryAccordion', true);
$data['sessions'] = User::getSessions($userID);
$data['history'] = User::getPaymentHistory($userID);
$apiChars = Api::getCharacters($userID);
$domainChars = array();
if ($apiChars != null) {
foreach ($apiChars as $apiChar) {
$char = Info::getPilotDetails($apiChar['characterID'], null);
$char['corpTicker'] = modifyTicker($mdb->findField('information', 'ticker', ['type' => 'corporationID', 'id' => (int) @$char['corporationID']]));
$char['alliTicker'] = modifyTicker($mdb->findField('information', 'ticker', ['type' => 'corporationID', 'id' => (int) @$char['allianceID']]));
$domainChars[] = $char;
}
}
$corps = array();
$allis = array();
foreach ($domainChars as $domainChar) {
if (@$domainChar['isCEO']) {
$subdomain = modifyTicker($domainChar['corpTicker']) . ".{$baseAddr}";
if (isset($bannerUpdates[$subdomain])) {
示例3: foreach
foreach ($killdata["involved"] as $inv) {
if ($inv["finalBlow"] == 1) {
$finalBlow = $inv;
}
}
}
$extra = array();
// And now give all the arrays and whatnots to twig..
if ($pageview == "overview") {
$extra["items"] = combineditems(md5($id), $killdata["items"]);
$extra["invAll"] = involvedCorpsAndAllis(md5($id), $killdata["involved"]);
$extra["involved"] = $involved;
$extra["allinvolved"] = $allinvolved;
}
if ($pageview == "comments") {
$extra["cmtChars"] = Api::getCharacters($userID);
$extra["cmtChars"][] = array("characterID" => 0, "characterName" => "Anonymous");
}
$extra["droppedisk"] = droppedIsk(md5($id), $killdata["items"]);
$extra["lostisk"] = $killdata["info"]["total_price"] - $extra["droppedisk"];
$extra["fittedisk"] = fittedIsk(md5($id), $killdata["items"]);
$extra["relatedtime"] = date("YmdH00", strtotime($killdata["info"]["killTime"]));
$extra["fittingwheel"] = eftarray(md5($id), $killdata["items"], $killdata["victim"]["characterID"]);
$extra["involvedships"] = involvedships($killdata["involved"]);
$extra["involvedshipscount"] = count($extra["involvedships"]);
$extra["totalprice"] = usdeurgbp($killdata["info"]["total_price"]);
$extra["destroyedprice"] = usdeurgbp($extra["lostisk"]);
$extra["droppedprice"] = usdeurgbp($extra["droppedisk"]);
$extra["fittedprice"] = usdeurgbp($extra["fittedisk"]);
$extra["efttext"] = Fitting::EFT($extra["fittingwheel"]);
$extra["dnatext"] = Fitting::DNA($killdata["items"], $killdata["info"]["shipTypeID"]);
示例4: array
}
}
$ddcombine = Util::getPost("ddcombine");
if (isset($ddcombine)) {
UserConfig::set("ddcombine", $ddcombine);
}
$ddmonthyear = Util::getPost("ddmonthYear");
if (isset($ddmonthyear)) {
UserConfig::set("ddmonthyear", $ddmonthyear);
}
$useSummaryAccordion = Util::getPost("useSummaryAccordion");
if (isset($useSummaryAccordion)) {
UserConfig::set("useSummaryAccordion", $useSummaryAccordion);
}
}
$data["entities"] = Account::getUserTrackerData();
$data["themes"] = Util::bootstrapThemes();
$data["viewthemes"] = Util::themesAvailable();
$data["apiKeys"] = Api::getKeys($userID);
$data["apiChars"] = Api::getCharacters($userID);
$charKeys = Api::getCharacterKeys($userID);
$charKeys = Info::addInfo($charKeys);
$data["apiCharKeys"] = $charKeys;
$data["userInfo"] = User::getUserInfo();
$data["currentTheme"] = UserConfig::get("theme", "default");
$data["timeago"] = UserConfig::get("timeago");
$data["ddcombine"] = UserConfig::get("ddcombine");
$data["ddmonthyear"] = UserConfig::get("ddmonthyear");
$data["useSummaryAccordion"] = UserConfig::get("useSummaryAccordion");
$data["sessions"] = User::getSessions($userID);
$app->render("account.html", array("data" => $data, "message" => $error, "key" => $key, "reqid" => $reqid));