当前位置: 首页>>代码示例>>PHP>>正文


PHP JCckDevHelper::getUrlVars方法代码示例

本文整理汇总了PHP中JCckDevHelper::getUrlVars方法的典型用法代码示例。如果您正苦于以下问题:PHP JCckDevHelper::getUrlVars方法的具体用法?PHP JCckDevHelper::getUrlVars怎么用?PHP JCckDevHelper::getUrlVars使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JCckDevHelper的用法示例。


在下文中一共展示了JCckDevHelper::getUrlVars方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addScript

 public static function addScript($url, $type = "text/javascript", $defer = false, $async = false)
 {
     $app = JFactory::getApplication();
     if (!isset($app->cck_document)) {
         $app->cck_document = array();
     }
     // Make sure to have only one inclusion of special external scripts
     if (strpos($url, 'http') !== false) {
         if (strpos($url, '//maps.googleapis.com/maps/api/js?') !== false) {
             if (isset(self::$_urls['google_maps'])) {
                 $cur = self::$_urls['google_maps'];
                 $vars2 = JCckDevHelper::getUrlVars($url);
                 if (!$vars2->def('libraries')) {
                     return;
                 }
                 $vars = JCckDevHelper::getUrlVars($cur);
                 $libraries = array();
                 $libraries[$vars->get('libraries')] = '';
                 $libraries[$vars2->get('libraries')] = '';
                 $libraries = array_keys($libraries);
                 $url = str_replace('libraries=' . $vars2->get('libraries'), 'libraries=' . implode(',', $libraries), $url);
                 unset($app->cck_document['scripts'][$cur]);
             }
             self::$_urls['google_maps'] = $url;
         }
     }
     $app->cck_document['scripts'][$url]['mime'] = $type;
     $app->cck_document['scripts'][$url]['defer'] = $defer;
     $app->cck_document['scripts'][$url]['async'] = $async;
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:30,代码来源:dev.php

示例2: base64_decode

$layer = $app->input->getCmd('quicklayout', 'icon');
$lang = JFactory::getLanguage();
$market = 'http://www.seblod.com/download.html?tmpl=component';
$opts = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=685,height=600';
$quickadd = $app->input->getInt('quickadd', 0);
$type = '';
$variables = base64_decode($app->input->getBase64('variables'));
$return = base64_decode($app->input->getBase64('return'));
$user = JFactory::getUser();
if ($quickadd) {
    $legacy = 0;
    $url = 'none';
    $items = $layer == 'list' ? JCckDevIntegration::getForms($url, $type, 'folder') : JCckDevIntegration::getForms($url, $type);
} else {
    $legacy = 2;
    $url = JCckDevHelper::getUrlVars($return);
    $layer = JCck::getConfig_Param('integration_layout', 'icon');
    $items = $layer == 'list' ? JCckDevIntegration::getForms($url, $type, 'folder') : JCckDevIntegration::getForms($url, $type);
    if (strpos($type, ',') === false) {
        $options = JCckDatabase::loadResult('SELECT a.options FROM #__cck_core_objects AS a WHERE a.name = "' . $type . '"');
        $options = new JRegistry($options);
        $legacy = $options->get('add_alt', 2);
    }
}
if ($legacy == 1) {
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>', '<span style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM')) . '</span>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:select.php


注:本文中的JCckDevHelper::getUrlVars方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。