本文整理匯總了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;
}
示例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 {