本文整理汇总了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;
}
示例2: getDefinitionSummary
public function getDefinitionSummary(ResourceLoaderContext $context)
{
$summary = parent::getDefinitionSummary($context);
$summary[] = array('script' => $this->getScript($context));
return $summary;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}