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


PHP view::count_all_tables方法代码示例

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


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

示例1: pa

if (!update_htaccessFile()) {
    echo '<h2>Failed to update the .htaccess file. </h2>';
    echo 'You can either proceed with the installtion and manually copy the .htaccess from egnine/install folder after installtion, or <br>';
    echo 'Re-start the installation after giving write access to .htaccess file';
} else {
    $write_file_link = HOME_DIR . DS . '.htaccess';
    if (!chmod($write_file_link, 0644)) {
        echo "<br>Failed to change the access level of the .htacess file. Change the .htaccess file to 06444 mode after installation";
    }
}
if ($proceed) {
    //erify db version
    $db_version = $dbc->connection->getAttribute(PDO::ATTR_CLIENT_VERSION);
    pa($db_version);
    //verify if any existing data exists
    $existing_tables = view::count_all_tables();
    if (empty($existing_tables->table_count)) {
        $db_setting_file_path = HOME_DIR . DS . 'includes' . DS . 'basics' . DS . 'settings' . DS . 'dbsettings.inc';
        $db_setting_file = fopen($db_setting_file_path, "w");
        $result = fwrite($db_setting_file, $dbsetting_file);
        if ($result > 0) {
            if (!chmod($db_setting_file_path, 0644)) {
                echo "<br>Failed to change the access level of .dbsettings file. Change the .dbsettings file to 06444 mode after installtion";
            }
            echo "<br>Make sure that the write access from inlcudes directory, basics directory, .htaccess file and dbsettings are removed<br><br>";
        } else {
            echo "<br>Database settings file creation failed!. Verify the wrtite access to inlcudes directory, basics directory and dbsettings file<br><br>";
            $proceed = false;
        }
        fclose($db_setting_file);
    } else {
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:start_install.php

示例2: array

<?php

include_once "../../includes/basics/basics.inc";
$table_count = view::count_all_tables();
$progress_percentage = array('progress' => $_SESSION['progress_percentage']);
if (count($table_count) == 0) {
    return false;
} else {
    echo header('Content-Type: application/json');
    echo json_encode($table_count);
}
开发者ID:moxymokaya,项目名称:inoERP,代码行数:11,代码来源:json_install.php


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