本文整理汇总了PHP中Info::getInfoDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Info::getInfoDetails方法的具体用法?PHP Info::getInfoDetails怎么用?PHP Info::getInfoDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Info
的用法示例。
在下文中一共展示了Info::getInfoDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: max
}
}
if ($id <= 0) {
$app->notFound();
}
$parameters = Util::convertUriToParameters();
@($page = max(1, $parameters['page']));
global $loadGroupShips;
// Can't think of another way to do this just yet
$loadGroupShips = $key == 'group';
$limit = 50;
$parameters['limit'] = $limit;
$parameters['page'] = $page;
try {
$type = $map[$key]['column'];
$detail = Info::getInfoDetails("{$type}ID", $id);
if (isset($detail['valid']) && $detail['valid'] == false) {
$app->notFound();
}
} catch (Exception $ex) {
$app->render('error.html', array('message' => "There was an error fetching information for the {$key} you specified."));
return;
}
$pageName = isset($detail[$map[$key]['column'] . 'Name']) ? $detail[$map[$key]['column'] . 'Name'] : '???';
if ($pageName == '???' && !$mdb->exists('information', ['id' => $id])) {
return $app->render('404.html', array('message' => 'This entity is not in our database.'), 404);
die;
}
$columnName = $map[$key]['column'] . 'ID';
$mixedKills = $pageType == 'overview' && $map[$key]['mixed'] && UserConfig::get('mixKillsWithLosses', true);
$mixed = $pageType == 'overview' ? Kills::getKills($parameters) : array();
示例2: array
$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::getInfoDetails('characterID', $apiChar['characterID']);
$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])) {
$banner = $bannerUpdates[$subdomain];
Db::execute('insert into zz_subdomains (subdomain, banner) values (:subdomain, :banner) on duplicate key update banner = :banner', array(':subdomain' => $subdomain, ':banner' => $banner));
$error = "{$subdomain} has been updated, please wait up to 2 minutes for the changes to take effect.";
}