本文整理汇总了PHP中ConfigFile::tab方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigFile::tab方法的具体用法?PHP ConfigFile::tab怎么用?PHP ConfigFile::tab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigFile
的用法示例。
在下文中一共展示了ConfigFile::tab方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
# Library hosts
ConfigFile::write(['', '', '# Setting the hosted urls']);
ConfigFile::write("define( 'NQ_API_SHARED_HOST',\t'http://" . $_POST['app_create_dev_domain'] . "/api/' );");
ConfigFile::write("define( 'NQ_API_HOST_AUTH', \tNQ_API_SHARED_HOST . 'auth' );");
ConfigFile::write("define( 'NQ_API_HOST_DATABASE', \tNQ_API_SHARED_HOST . 'db' );");
ConfigFile::write("define( 'NQ_API_HOST_IMAGE',\tNQ_API_SHARED_HOST . 'img' );");
ConfigFile::write("define( 'NQ_API_HOST_FILE', \tNQ_API_SHARED_HOST . 'file' );");
ConfigFile::write("define( 'NQ_API_HOST_EMAIL', \tNQ_API_SHARED_HOST . 'email' );");
# Place for table aliases
ConfigFile::write(['', '', '# Database Table Aliases']);
ConfigFile::write('/* Add Database Table Aliases for Development here */');
ConfigFile::write(['', 'break;', '', '']);
ConfigFile::tab(-1);
}
# Ending the switch
ConfigFile::tab(-1);
ConfigFile::write('}');
ConfigFile::write('');
}
}
# Logging
$G_OUTPUT_RESULTS[] = ' - Closing the config file.<br />';
# Closing the config file
ConfigFile::close();
}
# Advanced install of storage servers
if ($_POST['install-mode'] == 'advanced' && (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '' || isset($_POST['create_storage_host']) && $_POST['create_storage_host'] != '')) {
# Storage Servers header
create_header('Storage Servers', $G_OUTPUT_RESULTS);
# Adding controller to database host
if (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '') {