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


PHP JoomlaTuneRoute类代码示例

本文整理汇总了PHP中JoomlaTuneRoute的典型用法代码示例。如果您正苦于以下问题:PHP JoomlaTuneRoute类的具体用法?PHP JoomlaTuneRoute怎么用?PHP JoomlaTuneRoute使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getObjectInfo

 function getObjectInfo($id, $language = null)
 {
     $info = new JCommentsObjectInfo();
     $Itemid = self::getItemid('com_marketplace');
     $Itemid = $Itemid > 0 ? '&Itemid=' . $Itemid : '';
     $marketplaceCore = JPATH_SITE . '/components/com_marketplace/controller.php';
     if (is_file($marketplaceCore)) {
         $db = JFactory::getDBO();
         $query = 'SELECT e.id, e.headline as title, e.user_id as userid' . " , CASE WHEN CHAR_LENGTH(e.alias) THEN CONCAT_WS(':', e.id, e.alias) ELSE e.id END as slug" . " , CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as categorySlug" . " FROM #__marketplace_entries AS e" . " JOIN #__marketplace_categories AS c ON c.id = e.category_id" . " WHERE e.id = " . $id;
         $db->setQuery($query);
         $row = $db->loadObject();
         $link = JRoute::_("index.php?option=com_marketplace&view=entry&catid=" . htmlspecialchars($row->categorySlug) . "&entry=" . $row->slug . $Itemid);
     } else {
         $db = JCommentsFactory::getDBO();
         $query = 'SELECT e.id, e.ad_headline as title, e.userid ' . " FROM #__marketplace_ads AS e" . " WHERE e.id = " . $id;
         $db->setQuery($query);
         $row = $db->loadObject();
         $link = JoomlaTuneRoute::_("index.php?option=com_marketplace&page=show_ad&adid=" . $id . $Itemid);
     }
     if (!empty($row)) {
         $info->title = $row->ad_headline;
         $info->userid = $row->userid;
         $info->link = $link;
     }
     return $info;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:26,代码来源:com_marketplace.plugin.php

示例2: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = JCommentsPlugin::getItemid('com_alberghi');
     $_Itemid = intval($_Itemid) ? '&Itemid=' . $_Itemid : '';
     $link = JoomlaTuneRoute::_('index.php?option=com_alberghi&task=detail&id=' . $id . $_Itemid);
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:7,代码来源:com_alberghi.plugin.php

示例3: getObjectLink

 function getObjectLink($id)
 {
     global $mainframe;
     if (!isset($GLOBALS['jc_sobi2itemid'])) {
         $_requestOption = JCommentsInput::getVar('option', '');
         $_requestItemid = (int) JCommentsInput::getVar('Itemid', 0);
         $_Itemid = null;
         $db =& JCommentsFactory::getDBO();
         $query = "SELECT `configValue`" . "\nFROM `#__sobi2_config`" . "\nWHERE `configKey` = 'forceMenuId'" . "\n  AND `sobi2Section` = 'general'";
         $db->setQuery($query);
         $forceMenuId = (int) $db->loadResult();
         if ($_requestOption == 'com_sobi2' && !$forceMenuId) {
             $_Itemid = $_requestItemid;
         } else {
             $_Itemid = JCommentsPlugin::getItemid('com_sobi2');
         }
         $GLOBALS['jc_sobi2itemid'] = $_Itemid;
     }
     $_Itemid = $GLOBALS['jc_sobi2itemid'];
     if ($_Itemid != null) {
         $_Itemid = '&Itemid=' . $_Itemid;
     } else {
         $_Itemid = '';
     }
     $link = JoomlaTuneRoute::_('index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=' . $id . $_Itemid);
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:27,代码来源:com_sobi2.plugin.php

示例4: getObjectLink

 function getObjectLink($id)
 {
     static $_Itemid = null;
     if (!isset($_Itemid)) {
         if (JCOMMENTS_JVERSION == '1.5') {
             $needles = array('gid' => (int) $id);
             if ($item = self::_findItem($needles)) {
                 $_Itemid = $item->id;
             } else {
                 $_Itemid = '';
             }
         } else {
             $_Itemid = self::getItemid('com_docman');
         }
     }
     if (JCOMMENTS_JVERSION == '1.0') {
         $link = JoomlaTuneRoute::_("index.php?option=com_docman&task=doc_details&gid=" . $id . "&Itemid=" . $_Itemid);
     } else {
         include_once JPATH_SITE . DS . 'includes' . DS . 'application.php';
         $link = 'index.php?option=com_docman&task=doc_details&gid=' . $id;
         if ($_Itemid != '') {
             $link .= '&Itemid=' . $_Itemid;
         }
         $router = JPATH_SITE . DS . 'components' . DS . 'com_docman' . DS . 'router.php';
         if (is_file($router)) {
             include_once $router;
         }
         $link = JRoute::_($link);
     }
     return $link;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:31,代码来源:com_docman.plugin.php

示例5: getObjectLink

 function getObjectLink($id)
 {
     $db =& JCommentsFactory::getDBO();
     $db->setQuery('SELECT folderid FROM #__puarcade_games WHERE id = ' . $id);
     $fid = $db->loadResult();
     $_Itemid = JCommentsPlugin::getItemid('com_puarcade');
     $link = JoomlaTuneRoute::_('index.php?option=com_puarcade&fid=' . $fid . '&gid=' . $id . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:9,代码来源:com_puarcade.plugin.php

示例6: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = self::getItemid('com_groupjive');
     $db = JCommentsFactory::getDBO();
     $db->setQuery('SELECT group_id FROM #__gj_bul WHERE id = ' . $id);
     $gid = $db->loadResult();
     $link = JoomlaTuneRoute::_('index.php?option=com_groupjive&task=showfullmessage&idm=' . $id . '&groupid=' . $gid . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:sergy444,项目名称:joomla,代码行数:9,代码来源:com_groupjive.plugin.php

示例7: getObjectLink

 function getObjectLink($id)
 {
     $link = '';
     $menu = jc_com_jcomments::getMenuItem($id);
     if ($menu != null) {
         $link = JoomlaTuneRoute::_('index.php?option=com_jcomments&Itemid=' . $menu->id);
     }
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:9,代码来源:com_jcomments.plugin.php

示例8: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = self::getItemid('com_ice');
     $db = JCommentsFactory::getDBO();
     $db->setQuery('SELECT catid, imgid FROM #__icefiles WHERE imgid = ' . $id);
     $catid = $db->loadResult();
     $link = JoomlaTuneRoute::_('index.php?option=com_ice&page=view&imgid=' . $id . '&catid=' . $catid . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:sergy444,项目名称:joomla,代码行数:9,代码来源:com_ice.plugin.php

示例9: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = JCommentsPlugin::getItemid('com_myblog');
     $db =& JCommentsFactory::getDBO();
     $db->setQuery("SELECT permalink FROM #__myblog_permalinks WHERE contentid='{$id}'");
     $permalink = $db->loadResult();
     $link = JoomlaTuneRoute::_('index.php?option=com_myblog&show=' . $permalink . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:9,代码来源:com_myblog.plugin.php

示例10: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = self::getItemid('com_xfaq');
     $db = JCommentsFactory::getDBO();
     $db->setQuery('SELECT catid FROM #__xfaq WHERE id = ' . $id);
     $catid = $db->loadResult();
     $link = JoomlaTuneRoute::_('index.php?option=com_xfaq&task=answer&catid=' . $catid . '&aid=' . $id . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:9,代码来源:com_xfaq.plugin.php

示例11: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = self::getItemid('com_scatalog');
     $db = JCommentsFactory::getDBO();
     $id = intval($id);
     $db->setQuery("SELECT cat_id FROM #__scatalog_catproduct_xref WHERE product_id={$id} LIMIT 1");
     $catid = $db->loadResult();
     $link = JoomlaTuneRoute::_("index.php?option=com_scatalog&view=product&catid={$catid}&id=" . $id . "&Itemid=" . $_Itemid);
     return $link;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:10,代码来源:com_scatalog.plugin.php

示例12: getObjectInfo

 function getObjectInfo($id, $language = null)
 {
     $info = new JCommentsObjectInfo();
     $db = JCommentsFactory::getDBO();
     $db->setQuery('SELECT id, name FROM #__easygallery WHERE id = ' . $id);
     $row = $db->loadObject();
     if (!empty($row)) {
         $_Itemid = self::getItemid('com_easygallery');
         $info->title = $row->name;
         $info->link = JoomlaTuneRoute::_('index.php?option=com_easygallery&act=photos&cid=' . $id . '&Itemid=' . $_Itemid);
     }
     return $info;
 }
开发者ID:carmerin,项目名称:cesae-web,代码行数:13,代码来源:com_easygallery.plugin.php

示例13: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = JCommentsPlugin::getItemid('com_virtuemart');
     if ($_Itemid != 0) {
         $_Itemid = '&Itemid=' . $_Itemid;
     } else {
         $_Itemid = '';
     }
     $db =& JCommentsFactory::getDBO();
     $query = "SELECT CONCAT('index.php?option=com_virtuemart&page=shop.product_details&flypage=', c.category_flypage,'&category_id=',c.category_id,'&product_id=', a.product_id, '" . $_Itemid . "' )" . "\n FROM #__vm_product AS a" . "\n LEFT JOIN #__vm_product_category_xref AS b ON b.product_id = a.product_id" . "\n LEFT JOIN #__vm_category AS c ON b.category_id = c.category_id" . "\n WHERE a.product_id = '{$id}'";
     $db->setQuery($query);
     $link = JoomlaTuneRoute::_($db->loadResult());
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:14,代码来源:com_virtuemart.plugin.php

示例14: getObjectLink

 function getObjectLink($id)
 {
     $_Itemid = JCommentsPlugin::getItemid('com_apoll');
     if (JCOMMENTS_JVERSION == '1.5') {
         $db =& JCommentsFactory::getDBO();
         $db->setQuery('SELECT alias, id FROM #__apolls WHERE id = ' . $id);
         $alias = $db->loadResult();
         $link = 'index.php?option=com_apoll&task=view&view=apoll&id=' . $id . ':' . $alias;
         $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : '';
         $link = JRoute::_($link);
     } else {
         $link = JoomlaTuneRoute::_('index.php?option=com_apoll&task=view&view=apoll&id=' . $id . '&Itemid=' . $_Itemid);
     }
     return $link;
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:15,代码来源:com_apoll.plugin.php

示例15: getObjectLink

 function getObjectLink($id)
 {
     $app = JCommentsFactory::getApplication();
     $myBlogFunctions = $app->getCfg('absolute_path') . DS . 'components' . DS . 'com_myblog' . DS . 'functions.myblog.php';
     if (is_file($myBlogFunctions)) {
         require_once $myBlogFunctions;
         $_Itemid = myGetItemId();
     } else {
         $_Itemid = self::getItemid('com_myblog');
     }
     $db = JCommentsFactory::getDBO();
     $db->setQuery('SELECT permalink FROM #__myblog_permalinks WHERE contentid=' . $id);
     $permalink = $db->loadResult();
     $link = JoomlaTuneRoute::_('index.php?option=com_myblog&show=' . $permalink . '&Itemid=' . $_Itemid);
     return $link;
 }
开发者ID:enjoy2000,项目名称:smcd,代码行数:16,代码来源:com_myblog.plugin.php


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