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


PHP Tpl::uses方法代码示例

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


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

示例1: fix_duplicate_list_entries

    $todo['postgresql_adodb'] = 'You have a version of ADOdb that does not contain overridden version of method ChangeTableSQL for PostgreSQL. ' . 'Please copy setup/upgrade/1.0/datadict-postgres.inc.php to ' . 'vendor/adodb/adodb-php/datadict/ before proceeding with the upgrade process.';
}
$upgrade_possible = true;
foreach ($checks as $check => $result) {
    if ($result !== true) {
        $upgrade_possible = false;
        $page->assign('todo', $todo[$check]);
        break;
    }
}
if (isset($upgrade_info['options'])) {
    // piece of HTML which adds user input, quick and dirty*/
    $page->assign('upgrade_options', implode('', $upgrade_info['options']));
}
$page->assign('index', APPLICATION_SETUP_INDEX);
$page->uses('checks', 'fs', 'upgrade_possible');
$page->assign('installed_version', $installed_version);
$page->display('upgrade.tpl');
// Functions for checking and fixing possible duplicate entries
// in database for those tables that now have a unique index.
function fix_duplicate_list_entries($doit = true)
{
    global $db, $uplog;
    // Categories need a bit more thinking. A real life example from
    // my own database: A big project originally written (horrible!)
    // in VB6, that I ported to .NET -environment. Categories:
    // BackOfficer (main category)
    // -> Reports (subcategory - should be allowed)
    // BackOfficer.NET (main category)
    // -> Reports (subcategory - should be allowed)
    // -> Reports (I added a fake duplicate - should not be allowed)
开发者ID:canneverbe,项目名称:flyspray,代码行数:31,代码来源:upgrade.php


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