本文整理汇总了PHP中Tx_Solr_Util::underscoredToUpperCamelCase方法的典型用法代码示例。如果您正苦于以下问题:PHP Tx_Solr_Util::underscoredToUpperCamelCase方法的具体用法?PHP Tx_Solr_Util::underscoredToUpperCamelCase怎么用?PHP Tx_Solr_Util::underscoredToUpperCamelCase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tx_Solr_Util
的用法示例。
在下文中一共展示了Tx_Solr_Util::underscoredToUpperCamelCase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadViewHelper
protected function loadViewHelper($helperKey)
{
if (isset($this->loadedHelperFiles[strtolower($helperKey)])) {
return $this->loadedHelperFiles[strtolower($helperKey)]['class'];
}
foreach ($this->viewHelperIncludePath as $extensionKey => $viewHelperPath) {
$viewHelperRealPath = $viewHelperPath;
if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($viewHelperPath, 'Classes/')) {
$viewHelperRealPath = substr($viewHelperPath, 8);
}
if (substr($viewHelperRealPath, -1) == '/') {
$viewHelperRealPath = substr($viewHelperRealPath, 0, -1);
}
$classNamePrefix = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($extensionKey);
$possibleFilename = Tx_Solr_Util::underscoredToUpperCamelCase($helperKey) . '.php';
$possibleClassName = $classNamePrefix . '_' . str_replace('/', '_', $viewHelperRealPath) . '_' . Tx_Solr_Util::underscoredToUpperCamelCase($helperKey);
$viewHelperIncludePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extensionKey) . $viewHelperPath . $possibleFilename;
if (file_exists($viewHelperIncludePath)) {
include_once $viewHelperIncludePath;
$this->loadedHelperFiles[strtolower($helperKey)] = array('file' => $viewHelperIncludePath, 'class' => $possibleClassName);
return $possibleClassName;
}
}
// viewhelper could not be found
return FALSE;
}