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


PHP eZPublishSDK::alias方法代码示例

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


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

示例1: version

 static function version($withRelease = true, $asAlias = false, $withState = true)
 {
     if ($asAlias) {
         $versionText = eZPublishSDK::alias();
         if ($withState) {
             $versionText .= "-" . eZPublishSDK::state();
         }
     } else {
         $versionText = 'Community Project ' . eZPublishSDK::majorVersion() . '.' . eZPublishSDK::minorVersion();
         //            $development = eZPublishSDK::developmentVersion();
         //            if ( $development !== false )
         //                $versionText .= '.' . $development;
     }
     return $versionText;
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:15,代码来源:version.php

示例2: array

        $phpAcceleratorInfo = array('name' => $info->phpAccelerator->name, 'url' => $info->phpAccelerator->url, 'enabled' => $info->phpAccelerator->isEnabled, 'version_integer' => $info->phpAccelerator->versionInt, 'version_string' => $info->phpAccelerator->versionString);
    } else {
        $phpAcceleratorInfo = array();
    }
} else {
    $systemInfo = array('cpu_type' => '', 'cpu_speed' => '', 'cpu_count' => '', 'memory_size' => '');
    $phpAcceleratorInfo = array();
}
$webserverInfo = false;
if (function_exists('apache_get_version')) {
    $webserverInfo = array('name' => 'Apache', 'modules' => false, 'version' => apache_get_version());
    if (function_exists('apache_get_modules')) {
        $webserverInfo['modules'] = apache_get_modules();
    }
}
$tpl->setVariable('ezpublish_version', eZPublishSDK::version() . " (" . eZPublishSDK::alias() . ")");
$tpl->setVariable('ezpublish_extensions', eZExtension::activeExtensions());
$tpl->setVariable('php_version', phpversion());
$tpl->setVariable('php_accelerator', $phpAcceleratorInfo);
$tpl->setVariable('webserver_info', $webserverInfo);
$tpl->setVariable('database_info', $db->databaseName());
$tpl->setVariable('database_charset', $db->charset());
$tpl->setVariable('database_object', $db);
$tpl->setVariable('php_loaded_extensions', get_loaded_extensions());
$tpl->setVariable('autoload_functions', spl_autoload_functions());
// Workaround until ezcTemplate
// The new system info class uses properties instead of attributes, so the
// values are not immediately available in the old template engine.
$tpl->setVariable('system_info', $systemInfo);
$phpINI = array();
foreach (array('safe_mode', 'register_globals', 'file_uploads') as $iniName) {
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:31,代码来源:info.php

示例3: while

    }
}
$done = false;
$result = null;
while (!$done && $step != null) {
    // Some common variables for all steps
    $tpl->setVariable("script", eZSys::serverVariable('PHP_SELF'));
    $siteBasics = $GLOBALS['eZSiteBasics'];
    $useIndex = $siteBasics['validity-check-required'];
    if ($useIndex) {
        $script = eZSys::wwwDir() . eZSys::indexFileName();
    } else {
        $script = eZSys::indexFile() . "/setup/{$partName}";
    }
    $tpl->setVariable('script', $script);
    $tpl->setVariable("version", array("text" => eZPublishSDK::version(), "major" => eZPublishSDK::majorVersion(), "minor" => eZPublishSDK::minorVersion(), "release" => eZPublishSDK::release(), "alias" => eZPublishSDK::alias()));
    if ($persistenceList === null) {
        $persistenceList = eZSetupFetchPersistenceList();
    }
    $tpl->setVariable('persistence_list', $persistenceList);
    // Try to include the relevant file
    $includeFile = $baseDir . 'steps/ezstep_' . $step['file'] . '.php';
    $stepClass = false;
    if (file_exists($includeFile)) {
        include_once $includeFile;
        $className = 'eZStep' . $step['class'];
        if ($step == $currentStep) {
            $stepInstaller = $previousStepClass;
        } else {
            $stepInstaller = new $className($tpl, $http, $ini, $persistenceList);
        }
开发者ID:legende91,项目名称:ez,代码行数:31,代码来源:ezsetup.php

示例4: array

    $tpl->setVariable( "script", eZSys::serverVariable( 'PHP_SELF' ) );

    $siteBasics = $GLOBALS['eZSiteBasics'];
    $useIndex = $siteBasics['validity-check-required'];

    if ( $useIndex )
        $script = eZSys::wwwDir() . eZSys::indexFileName();
    else
        $script = eZSys::indexFile() . "/setup/$partName";
    $tpl->setVariable( 'script', $script );

    $tpl->setVariable( "version", array( "text" => eZPublishSDK::version(),
                                         "major" => eZPublishSDK::majorVersion(),
                                         "minor" => eZPublishSDK::minorVersion(),
                                         "release" => eZPublishSDK::release(),
                                         "alias" => eZPublishSDK::alias() ) );

    if ( $persistenceList === null )
        $persistenceList = eZSetupFetchPersistenceList();
    $tpl->setVariable( 'persistence_list', $persistenceList );

    // Try to include the relevant file
    $includeFile = $baseDir . 'steps/ezstep_'.$step['file'].'.php';
    $stepClass = false;
    if ( file_exists( $includeFile ) )
    {
        include_once( $includeFile );
        $className = 'eZStep'.$step['class'];

        if ( $step == $currentStep ) // if processing post data of current step failed, use same class object.
        {
开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:31,代码来源:ezsetup.php


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