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


PHP CApi::Version方法代碼示例

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


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

示例1: __construct

 public function __construct()
 {
     $this->Path = \CApi::DataPath() . '/sessions';
     $oSession = \MailSo\Cache\CacheClient::NewInstance();
     $oSessionDriver = \MailSo\Cache\Drivers\File::NewInstance($this->Path);
     $oSessionDriver->bRootDir = true;
     $oSession->SetDriver($oSessionDriver);
     $oSession->SetCacheIndex(\CApi::Version());
     $this->Session = $oSession;
 }
開發者ID:afterlogic,項目名稱:aurora-core,代碼行數:10,代碼來源:user-session.php

示例2: buildBody

 /**
  * @param string $sWebPath Default value is **'.'**.
  * @param bool $bHelpdesk Default value is **false**.
  * @param int $iHelpdeskIdTenant Default value is **null**.
  * @param string $sHelpdeskHash Default value is empty string.
  * @param string $sCalendarPubHash Default value is empty string.
  * @param string $sFileStoragePubHash Default value is empty string.
  * @param bool $bMobile Default value is **false**.
  *
  * @return string
  */
 public function buildBody($sWebPath = '.', $bHelpdesk = false, $iHelpdeskIdTenant = null, $sHelpdeskHash = '', $sCalendarPubHash = '', $sFileStoragePubHash = '', $bMobile = false)
 {
     list($sLanguage, $sTheme, $sSiteName) = $this->getThemeAndLanguage();
     $sMobileSuffix = $bMobile && !$bHelpdesk ? '-mobile' : '';
     $sWebPath = empty($sWebPath) ? '.' : $sWebPath;
     return '<div class="pSevenMain"><div id="pSevenLoading"></div><div id="pSevenContent"></div><div id="pSevenHidden"></div>' . '<div>' . $this->compileTemplates($sTheme, $bMobile) . '<script src="' . $sWebPath . '/static/js/libs.js?' . CApi::VersionJs() . '"></script>' . $this->compileLanguage($sLanguage) . $this->compileAppData($bHelpdesk, $iHelpdeskIdTenant, $sHelpdeskHash, $sCalendarPubHash, $sFileStoragePubHash) . '<script src="' . $sWebPath . '/static/js/app' . $sMobileSuffix . ($bHelpdesk ? '-helpdesk' : (empty($sCalendarPubHash) ? empty($sFileStoragePubHash) ? '' : '-filestorage-pub' : '-calendar-pub')) . (CApi::GetConf('labs.use-app-min-js', false) ? '.min' : '') . '.js?' . CApi::VersionJs() . '"></script>' . (CApi::Plugin()->HasJsFiles() ? '<script src="?/Plugins/js/' . CApi::Plugin()->Hash() . '/"></script>' : '') . '</div></div>' . "\r\n" . '<!-- ' . CApi::Version() . ' -->';
 }
開發者ID:vitaliy7711,項目名稱:webmail-lite,代碼行數:18,代碼來源:manager.php

示例3: VersionJs

 /**
  * @return string
  */
 public static function VersionJs()
 {
     return preg_replace('/[^0-9a-z]/', '', CApi::Version() . (CApi::GetConf('labs.cache.static', true) ? '' : '-' . md5(time())));
 }
開發者ID:afterlogic,項目名稱:aurora-core,代碼行數:7,代碼來源:api.php

示例4: Hash

 /**
  * @return string
  */
 public function Hash()
 {
     $sResult = md5(CApi::Version());
     foreach ($this->_aPlugins as $oPlugin) {
         $sResult = md5($sResult . $oPlugin->GetPath() . $oPlugin->GetName() . $oPlugin->GetHash());
     }
     return $sResult;
 }
開發者ID:nsine,項目名稱:webmail-lite,代碼行數:11,代碼來源:plugin.php

示例5: Hash

 /**
  * @return string
  */
 public function Hash()
 {
     $sResult = md5(CApi::Version());
     foreach ($this->_aModules as $oModule) {
         $sResult = md5($sResult . $oModule->GetPath() . $oModule->GetName() . $oModule->GetHash());
     }
     return $sResult;
 }
開發者ID:afterlogic,項目名稱:aurora-core,代碼行數:11,代碼來源:module.php

示例6: buildBody

 /**
  * Returns application html.
  * 
  * @param string $sModuleHash
  * @return string
  */
 public function buildBody($sModuleHash = '')
 {
     list($sLanguage, $sTheme, $sSiteName) = $this->getThemeAndLanguage();
     return $this->compileTemplates() . $this->compileLanguage($sLanguage) . $this->compileAppData() . $this->getJsLinks($sModuleHash) . "\r\n" . '<!-- ' . CApi::Version() . ' -->';
 }
開發者ID:afterlogic,項目名稱:aurora-core,代碼行數:11,代碼來源:manager.php


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