當前位置: 首頁>>代碼示例>>PHP>>正文


PHP eZExtension::extensionInfo方法代碼示例

本文整理匯總了PHP中eZExtension::extensionInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZExtension::extensionInfo方法的具體用法?PHP eZExtension::extensionInfo怎麽用?PHP eZExtension::extensionInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在eZExtension的用法示例。


在下文中一共展示了eZExtension::extensionInfo方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getExtensionsInfo

function getExtensionsInfo()
{
    $siteINI = eZINI::instance();
    $extensionDir = $siteINI->variable('ExtensionSettings', 'ExtensionDirectory');
    $selectedExtensionArray = $siteINI->variable('ExtensionSettings', "ActiveExtensions");
    $selectedAccessExtensionArray = $siteINI->variable('ExtensionSettings', "ActiveAccessExtensions");
    $selectedExtensions = array_merge($selectedExtensionArray, $selectedAccessExtensionArray);
    $selectedExtensions = array_unique($selectedExtensions);
    $result = array();
    foreach ($selectedExtensions as $extension) {
        $extensionInfo = eZExtension::extensionInfo($extension);
        if ($extensionInfo) {
            $result[$extension] = $extensionInfo;
        }
    }
    return $result;
}
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:17,代碼來源:about.php

示例2: version

  /**
  * version
  *
  * @static
  * @return string ezoe version number
  */
 public static function version()
 {
     $info = eZExtension::extensionInfo( 'ezoe' );
     return $info['version'];
 }
開發者ID:sushilbshinde,項目名稱:ezpublish-study,代碼行數:11,代碼來源:ezoexmlinput.php

示例3: isset

$objectVersion = isset($Params['ObjectVersion']) ? (int) $Params['ObjectVersion'] : 0;
$dialog = isset($Params['Dialog']) ? trim($Params['Dialog']) : '';
if ($objectID === 0 || $objectVersion === 0) {
    echo ezpI18n::tr('design/standard/ezoe', 'Invalid or missing parameter: %parameter', null, array('%parameter' => 'ObjectID/ObjectVersion'));
    eZExecution::cleanExit();
}
$object = eZContentObject::fetch($objectID);
if (!$object instanceof eZContentObject || !$object->canRead()) {
    echo ezpI18n::tr('design/standard/ezoe', 'Invalid parameter: %parameter = %value', null, array('%parameter' => 'ObjectId', '%value' => $objectID));
    eZExecution::cleanExit();
}
if ($dialog === '') {
    echo ezpI18n::tr('design/standard/ezoe', 'Invalid or missing parameter: %parameter', null, array('%parameter' => 'Dialog'));
    eZExecution::cleanExit();
}
$ezoeInfo = eZExtension::extensionInfo('ezoe');
$tpl = eZTemplate::factory();
$tpl->setVariable('object', $object);
$tpl->setVariable('object_id', $objectID);
$tpl->setVariable('object_version', $objectVersion);
$tpl->setVariable('ezoe_name', $ezoeInfo['name']);
$tpl->setVariable('ezoe_version', $ezoeInfo['version']);
$tpl->setVariable('ezoe_copyright', $ezoeInfo['copyright']);
$tpl->setVariable('ezoe_license', $ezoeInfo['license']);
$tpl->setVariable('ezoe_info_url', $ezoeInfo['info_url']);
// use persistent_variable like content/view does, sending parameters
// to pagelayout as a hash.
$tpl->setVariable('persistent_variable', array());
// run template and return result
$Result = array();
$Result['content'] = $tpl->fetch('design:ezoe/' . $dialog . '.tpl');
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:31,代碼來源:dialog.php

示例4: ezgeshiAvailable

 static function ezgeshiAvailable()
 {
     if (in_array('ezsh', eZExtension::activeExtensions())) {
         $info = eZExtension::extensionInfo('ezsh');
         // since ezp 4.4, we have a lowercase version info
         return version_compare(@$info['Version'], '1.3') >= 0 || version_compare(@$info['version'], '1.3') >= 0;
     }
     return false;
 }
開發者ID:gggeek,項目名稱:ggsysinfo,代碼行數:9,代碼來源:sysinfotools.php


注:本文中的eZExtension::extensionInfo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。