当前位置: 首页>>代码示例>>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;未经允许,请勿转载。