当前位置: 首页>>代码示例>>PHP>>正文


PHP OC_Defaults::getiOSClientUrl方法代码示例

本文整理汇总了PHP中OC_Defaults::getiOSClientUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP OC_Defaults::getiOSClientUrl方法的具体用法?PHP OC_Defaults::getiOSClientUrl怎么用?PHP OC_Defaults::getiOSClientUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OC_Defaults的用法示例。


在下文中一共展示了OC_Defaults::getiOSClientUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: function

ksort($commonLanguages);
// sort now by displayed language not the iso-code
usort($languages, function ($a, $b) {
    if ($a['code'] === $a['name'] && $b['code'] !== $b['name']) {
        // If a doesn't have a name, but b does, list b before a
        return 1;
    }
    if ($a['code'] !== $a['name'] && $b['code'] === $b['name']) {
        // If a does have a name, but b doesn't, list a before b
        return -1;
    }
    // Otherwise compare the names
    return strcmp($a['name'], $b['name']);
});
//links to clients
$clients = array('desktop' => $config->getSystemValue('customclient_desktop', $defaults->getSyncClientUrl()), 'android' => $config->getSystemValue('customclient_android', $defaults->getAndroidClientUrl()), 'ios' => $config->getSystemValue('customclient_ios', $defaults->getiOSClientUrl()));
// only show root certificate import if external storages are enabled
$enableCertImport = false;
$externalStorageEnabled = \OC::$server->getAppManager()->isEnabledForUser('files_external');
if ($externalStorageEnabled) {
    /** @var \OCA\Files_External\Service\BackendService $backendService */
    $backendService = \OC_Mount_Config::$app->getContainer()->query('\\OCA\\Files_External\\Service\\BackendService');
    $enableCertImport = $backendService->isUserMountingAllowed();
}
// Return template
$tmpl = new OC_Template('settings', 'personal', 'user');
$tmpl->assign('usage', OC_Helper::humanFileSize($storageInfo['used']));
$tmpl->assign('total_space', OC_Helper::humanFileSize($storageInfo['total']));
$tmpl->assign('usage_relative', $storageInfo['relative']);
$tmpl->assign('clients', $clients);
$tmpl->assign('email', $email);
开发者ID:nseps,项目名称:core,代码行数:31,代码来源:personal.php

示例2: function

		$languages[]=$ln;
	}
}

ksort($commonlanguages);

// sort now by displayed language not the iso-code
usort( $languages, function ($a, $b) {
	return strcmp($a['name'], $b['name']);
});

//links to clients
$clients = array(
	'desktop' => $config->getSystemValue('customclient_desktop', $defaults->getSyncClientUrl()),
	'android' => $config->getSystemValue('customclient_android', $defaults->getAndroidClientUrl()),
	'ios'     => $config->getSystemValue('customclient_ios', $defaults->getiOSClientUrl())
);

// Return template
$tmpl = new OC_Template( 'settings', 'personal', 'user');
$tmpl->assign('usage', OC_Helper::humanFileSize($storageInfo['used']));
$tmpl->assign('total_space', OC_Helper::humanFileSize($storageInfo['total']));
$tmpl->assign('usage_relative', $storageInfo['relative']);
$tmpl->assign('clients', $clients);
$tmpl->assign('email', $email);
$tmpl->assign('languages', $languages);
$tmpl->assign('commonlanguages', $commonlanguages);
$tmpl->assign('activelanguage', $userLang);
$tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser()));
$tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser()));
$tmpl->assign('displayName', OC_User::getDisplayName());
开发者ID:ninjasilicon,项目名称:core,代码行数:31,代码来源:personal.php


注:本文中的OC_Defaults::getiOSClientUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。