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


PHP Installer::getProfileInfo方法代码示例

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


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

示例1: caGetAvailableXMLProfiles

/**
 * Returns a sorted list of XML profiles. Keys are display names and values are profile codes (filename without .xml extension).
 *
 * @param string $ps_install_dir_prefix optional prefix for install dir
 * @return array List of available profiles
 */
function caGetAvailableXMLProfiles($ps_install_dir_prefix = '.')
{
    $va_files = caGetDirectoryContentsAsList($ps_install_dir_prefix . '/profiles/xml', false);
    $va_profiles = array();
    foreach ($va_files as $vs_filepath) {
        if (preg_match("!\\.xml\$!", $vs_filepath)) {
            $va_tmp = explode('/', $vs_filepath);
            $va_tmp2 = explode('.', array_pop($va_tmp));
            $vs_file = array_shift($va_tmp2);
            $va_profile_info = Installer::getProfileInfo($ps_install_dir_prefix . '/profiles/xml', $vs_file);
            if (!$va_profile_info['useForConfiguration']) {
                continue;
            }
            $va_profiles[$va_profile_info['display']] = $vs_file;
        }
    }
    ksort($va_profiles);
    return $va_profiles;
}
开发者ID:idiscussforum,项目名称:providence,代码行数:25,代码来源:configurationHelpers.php

示例2: die

 * CollectiveAccess is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
if (!constant('__CollectiveAccess_Installer__')) {
    die("Cannot run");
}
$t_total = new Timer();
$va_profile_info = Installer::getProfileInfo("./profiles/xml", $ps_profile);
?>
<div id='box'>
	<div id="logo"><img src="<?php 
print $vs_url_path;
?>
/graphics/ca_logo.png"/></div><!-- end logo -->
	<div id="content">
	<H1>
		Installing CollectiveAccess <?php 
print constant('__CollectiveAccess__');
?>
...
	</H1>
	<H2>
		Loading <?php 
开发者ID:kai-iak,项目名称:providence,代码行数:31,代码来源:page2.php


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