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


PHP ResourceLoaderModule::getDefinitionSummary方法代碼示例

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


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

示例1: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $summary = parent::getDefinitionSummary($context);
     $options = [];
     foreach (['scripts', 'debugScripts', 'styles', 'languageScripts', 'skinScripts', 'skinStyles', 'messages', 'templates', 'skipFunction', 'debugRaw', 'raw'] as $member) {
         $options[$member] = $this->{$member};
     }
     $summary[] = ['options' => $options, 'fileHashes' => $this->getFileHashes($context), 'messageBlob' => $this->getMessageBlob($context)];
     return $summary;
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:16,代碼來源:ResourceLoaderFileModule.php

示例2: getDefinitionSummary

 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $summary = parent::getDefinitionSummary($context);
     $summary[] = array('script' => $this->getScript($context));
     return $summary;
 }
開發者ID:eliagbayani,項目名稱:eoearth,代碼行數:6,代碼來源:VisualEditorDataModule.php

示例3: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     global $IP;
     $summary = parent::getDefinitionSummary($context);
     $summary[] = ['vars' => $this->getConfigSettings($context), 'wgLegacyJavaScriptGlobals' => $this->getConfig()->get('LegacyJavaScriptGlobals'), 'moduleHashes' => $this->getAllModuleHashes($context), 'fileMtimes' => [filemtime("{$IP}/resources/src/startup.js")]];
     return $summary;
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:13,代碼來源:ResourceLoaderStartUpModule.php

示例4: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $summary = parent::getDefinitionSummary($context);
     $options = array();
     foreach (array('scripts', 'debugScripts', 'loaderScripts', 'styles', 'languageScripts', 'skinScripts', 'skinStyles', 'messages', 'templates', 'skipFunction', 'debugRaw', 'raw') as $member) {
         $options[$member] = $this->{$member};
     }
     $summary[] = array('options' => $options, 'fileHashes' => $this->getFileHashes($context), 'msgBlobMtime' => $this->getMsgBlobMtime($context->getLanguage()));
     return $summary;
 }
開發者ID:jpena88,項目名稱:mediawiki-dokku-deploy,代碼行數:16,代碼來源:ResourceLoaderFileModule.php

示例5: getDefinitionSummary

 /**
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $summary = parent::getDefinitionSummary($context);
     $summary[] = array('pages' => $this->getPages($context), 'titleInfo' => $this->getTitleInfo($context));
     return $summary;
 }
開發者ID:MediaWiki-stable,項目名稱:1.26.1,代碼行數:10,代碼來源:ResourceLoaderWikiModule.php

示例6: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $this->loadFromDefinition();
     $summary = parent::getDefinitionSummary($context);
     foreach (['localBasePath', 'images', 'variants', 'prefix', 'selectorWithoutVariant', 'selectorWithVariant'] as $member) {
         $summary[$member] = $this->{$member};
     }
     return $summary;
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:15,代碼來源:ResourceLoaderImageModule.php

示例7: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $this->loadFromDefinition();
     $summary = parent::getDefinitionSummary($context);
     $options = [];
     foreach (['localBasePath', 'images', 'variants', 'prefix', 'selectorWithoutVariant', 'selectorWithVariant'] as $member) {
         $options[$member] = $this->{$member};
     }
     $summary[] = ['options' => $options, 'fileHashes' => $this->getFileHashes($context)];
     return $summary;
 }
開發者ID:paladox,項目名稱:mediawiki,代碼行數:17,代碼來源:ResourceLoaderImageModule.php

示例8: getDefinitionSummary

 /**
  * @param $context ResourceLoaderContext
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $r = parent::getDefinitionSummary($context);
     return $r + array('class' => get_class($this), 'lang' => $this->lang, 'geshi' => GESHI_VERSION);
 }
開發者ID:mediawiki4intranet,項目名稱:SyntaxHighlight_GeSHi,代碼行數:9,代碼來源:ResourceLoaderGeSHiModule.php

示例9: getDefinitionSummary

 /**
  * Get the definition summary for this module.
  *
  * @param ResourceLoaderContext $context
  * @return array
  */
 public function getDefinitionSummary(ResourceLoaderContext $context)
 {
     $summary = parent::getDefinitionSummary($context);
     foreach (array('scripts', 'debugScripts', 'loaderScripts', 'styles', 'languageScripts', 'skinScripts', 'skinStyles', 'dependencies', 'messages', 'targets', 'templates', 'group', 'position', 'skipFunction', 'localBasePath', 'remoteBasePath', 'debugRaw', 'raw') as $member) {
         $summary[$member] = $this->{$member};
     }
     return $summary;
 }
開發者ID:eliagbayani,項目名稱:LiteratureEditor,代碼行數:14,代碼來源:ResourceLoaderFileModule.php


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