當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。