• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP oxUBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: _setVendorLocatorData

 /**
  * Sets details locator data for articles that came from vendor list.
  *
  * @param oxUBase   $oLocatorTarget oxUBase object
  * @param oxArticle $oCurrArticle   current article
  */
 protected function _setVendorLocatorData($oLocatorTarget, $oCurrArticle)
 {
     if ($oVendor = $oLocatorTarget->getActVendor()) {
         $sVendorId = $oVendor->getId();
         $myUtils = oxRegistry::getUtils();
         $blSeo = $myUtils->seoIsActive();
         // loading data for article navigation
         $oIdList = oxNew("oxArticleList");
         if ($oLocatorTarget->showSorting()) {
             $oIdList->setCustomSorting($oLocatorTarget->getSortingSql($oLocatorTarget->getSortIdent()));
         }
         $oIdList->loadVendorIds($sVendorId);
         //page number
         $iPage = $this->_findActPageNumber($oLocatorTarget->getActPage(), $oIdList, $oCurrArticle);
         $sAdd = null;
         if (!$blSeo) {
             $sAdd = 'listtype=vendor&cnid=v_' . $sVendorId;
         }
         // setting product position in list, amount of articles etc
         $oVendor->iCntOfProd = $oIdList->count();
         $oVendor->iProductPos = $this->_getProductPos($oCurrArticle, $oIdList, $oLocatorTarget);
         if ($blSeo && $iPage) {
             $oVendor->toListLink = oxRegistry::get("oxSeoEncoderVendor")->getVendorPageUrl($oVendor, $iPage);
         } else {
             $oVendor->toListLink = $this->_makeLink($oVendor->getLink(), $this->_getPageNumber($iPage));
         }
         $oNextProduct = $this->_oNextProduct;
         $oBackProduct = $this->_oBackProduct;
         $oVendor->nextProductLink = $oNextProduct ? $this->_makeLink($oNextProduct->getLink(), $sAdd) : null;
         $oVendor->prevProductLink = $oBackProduct ? $this->_makeLink($oBackProduct->getLink(), $sAdd) : null;
     }
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:38,代码来源:Locator.php


示例2: getLink

 /**
  * get link of current view
  *
  * @param int $iLang requested language
  *
  * @return string
  */
 public function getLink($iLang = null)
 {
     if ($oRecomm = $this->getActiveRecommList()) {
         $sLink = $oRecomm->getLink($iLang);
     } else {
         $sLink = oxUBase::getLink($iLang);
     }
     $sSearch = oxConfig::getParameter('searchrecomm');
     if ($sSearch) {
         $sLink .= (strpos($sLink, '?') === false ? '?' : '&') . "searchrecomm={$sSearch}";
     }
     return $sLink;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:20,代码来源:recommlist.php


示例3: render

 /**
  * Renders the view
  *
  * @return unknown
  */
 public function render()
 {
     oxUBase::render();
     return $this->_sThisTemplate;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:10,代码来源:recommadd.php


示例4: render

 public function render()
 {
     /** @var $oRakuten rakuten_checkout */
     $oRakuten = oxNew('rakuten_checkout');
     // Check which method will be used: Standard or Inline
     if ($this->getConfig()->getShopConfVar('sRakutenIntegrationMethod', -1) == 'STANDARD') {
         // Redirect to Rakuten Checkout
         if ($redirectUrl = $oRakuten->getRedirectUrl()) {
             // Received redirect URL
             oxUtils::getInstance()->redirect($redirectUrl, false, 302);
         } else {
             // Error returned, redirecting to the shopping cart
             oxUtils::getInstance()->redirect($this->_getBasketUrl(), false, 302);
         }
     } elseif ($this->getConfig()->getShopConfVar('sRakutenIntegrationMethod', -1) == 'INLINE') {
         // Inline integration (iFrame)
         if ($inlineCode = $oRakuten->getRedirectUrl(true)) {
             // Loading iFrame
             $this->_aViewData['oxidBlock_content'][] = $inlineCode;
             return parent::render();
         } else {
             // Error returned, redirecting to the shopping cart
             oxUtils::getInstance()->redirect($this->_getBasketUrl(), false, 302);
         }
     } else {
         // Unknown integration method
         oxUtilsView::getInstance()->addErrorToDisplay('Unknown integration method.');
         oxUtils::getInstance()->redirect($this->_getBasketUrl(), false, 302);
     }
     return false;
 }
开发者ID:rakuten-deutschland,项目名称:checkout-oxid-4-6,代码行数:31,代码来源:rakuten.php


示例5: render

 public function render()
 {
     parent::render();
     $this->createJsonFile();
     $this->getLocation();
     return $this->_sThisTemplate;
 }
开发者ID:spoilie,项目名称:OXID_EShop_ShopLocator,代码行数:7,代码来源:shoplocator_out.php


示例6: render

 /**
  * If tags are ON - returns parent::render() value, else - displays 404
  * page, as tags are off
  *
  * @return string
  */
 public function render()
 {
     // if tags are off - showing 404 page
     if (!$this->showTags()) {
         error_404_handler();
     }
     return parent::render();
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:14,代码来源:tags.php


示例7: render

 /**
  * Ueberladen die Render
  *
  * @author Rafal  Wesolowski
  * @return string
  */
 public function render()
 {
     parent::render();
     $this->_aViewData["sOxid"] = $sOxid = oxConfig::getParameter("oxid");
     $this->_getModulesAnalize();
     $this->_aViewData["sView"] = __CLASS__;
     return $this->_sThisTemplate;
 }
开发者ID:OXIDprojects,项目名称:debugax,代码行数:14,代码来源:helper_modules.php


示例8: render

 /**
  * Standard render function
  */
 public function render()
 {
     parent::render();
     $this->_debug = oxRegistry::getConfig()->getRequestParameter("debug");
     $this->setArticlesHidden();
     $this->setArticlesVisible();
     // do not return template name, just die...
     exit;
 }
开发者ID:OXIDprojects,项目名称:psHiddenArticles,代码行数:12,代码来源:pshiddenarticles_cron.php


示例9: render

 /**
  * Executes parent method parent::render(), returns name of template file.
  *
  * @return  string  $sTplName   template file name
  */
 public function render()
 {
     parent::render();
     // security fix so that you cant access files from outside template dir
     $sTplName = basename((string) oxRegistry::getConfig()->getRequestParameter("tpl"));
     if ($sTplName) {
         $sTplName = 'custom/' . $sTplName;
     }
     return $sTplName;
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:15,代码来源:tpl.php


示例10: render

 /**
  * Executes parent::render(), if invitation is disabled - redirects to main page
  *
  * @return string
  */
 public function render()
 {
     $oConfig = $this->getConfig();
     if (!$oConfig->getConfigParam("blInvitationsEnabled")) {
         oxUtils::getInstance()->redirect($oConfig->getShopHomeURL());
         return;
     }
     parent::render();
     return $this->_sThisTemplate;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:15,代码来源:invite.php


示例11: render

 /**
  * Renders error screen
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $errorNumber = oxRegistry::getConfig()->getRequestParameter('execerror');
     $templates = $this->getErrorTemplates();
     if (array_key_exists($errorNumber, $templates)) {
         return $templates[$errorNumber];
     } else {
         return 'message/err_unknown.tpl';
     }
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:16,代码来源:OxidStartController.php


示例12: render

 /**
  * Loads delivery, deliveryset list info and returns name of template file
  * to render info::_sThisTemplate. If no template name specified - will
  * load "impressum" content
  *
  * @return  string  $this->_sThisTemplate   current template file name
  */
 public function render()
 {
     parent::render();
     if (!$this->getTemplateName()) {
         //  get default page
         $oContent = $this->getContent();
         $this->getViewConfig()->setViewConfigParam('tpl', $oContent->getId());
         $this->_sThisTemplate = 'page/info/content.tpl';
     } else {
         $this->getViewConfig()->setViewConfigParam('tpl', $this->getTemplateName());
     }
     return $this->_sThisTemplate;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:20,代码来源:info.php


示例13: render

 /**
  * Renders error screen
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $sErrorNo = oxConfig::getParameter('execerror');
     $sTemplate = '';
     if ($sErrorNo == 'unknown') {
         $sTemplate = 'message/err_unknown.tpl';
     }
     if ($sTemplate) {
         return $sTemplate;
     } else {
         return 'start.tpl';
     }
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:19,代码来源:oxstart.php


示例14: render

 /**
  * Renders error screen
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $sErrorNo = oxRegistry::getConfig()->getRequestParameter('execerror');
     $sTemplate = '';
     if ($sErrorNo == 'unknown') {
         $sTemplate = 'message/err_unknown.tpl';
     }
     if ($sTemplate) {
         return $sTemplate;
     } else {
         return 'message/err_unknown.tpl';
     }
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:19,代码来源:oxstart.php


示例15: render

 public function render()
 {
     parent::render();
     if ($this->err == 'API KEY INVALID') {
         oxRegistry::getUtils()->setHeader("HTTP/1.0 401 Unauthorized");
     }
     oxRegistry::getUtils()->setHeader("Content-Type: application/json; charset=" . oxRegistry::getLang()->translateString("charset"));
     $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty();
     $this->_aViewData['errmsg'] = $this->err;
     $this->_aViewData['haserror'] = $this->err !== false;
     $this->_aViewData['data'] = $this->data;
     foreach (array_keys($this->_aViewData) as $sViewName) {
         $oSmarty->assign_by_ref($sViewName, $this->_aViewData[$sViewName]);
     }
     oxRegistry::getUtils()->showMessageAndExit($oSmarty->fetch($this->_sThisTemplate, $this->getViewId()));
 }
开发者ID:styladev,项目名称:oxid,代码行数:16,代码来源:StylaFeed_Output.php


示例16: render

 /**
  * Renders requested RSS feed
  *
  * Template variables:
  * <b>rss</b>
  */
 public function render()
 {
     parent::render();
     $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty();
     // #2873: In demoshop for RSS we set php_handling to SMARTY_PHP_PASSTHRU
     // as SMARTY_PHP_REMOVE removes not only php tags, but also xml
     if ($this->getConfig()->isDemoShop()) {
         $oSmarty->php_handling = SMARTY_PHP_PASSTHRU;
     }
     foreach (array_keys($this->_aViewData) as $sViewName) {
         $oSmarty->assign_by_ref($sViewName, $this->_aViewData[$sViewName]);
     }
     // return rss xml, no further processing
     $sCharset = oxRegistry::getLang()->translateString("charset");
     oxRegistry::getUtils()->setHeader("Content-Type: text/xml; charset=" . $sCharset);
     oxRegistry::getUtils()->showMessageAndExit($this->_processOutput($oSmarty->fetch($this->_sThisTemplate, $this->getViewId())));
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:23,代码来源:rss.php


示例17: render

 /**
  * Renders requested RSS feed
  *
  * Template variables:
  * <b>rss</b>
  *
  * @return  string  $this->_sThisTemplate   current template file name
  */
 public function render()
 {
     parent::render();
     $oSmarty = oxUtilsView::getInstance()->getSmarty();
     // #2873: In demoshop for RSS we set php_handling to SMARTY_PHP_PASSTHRU
     // as SMARTY_PHP_REMOVE removes not only php tags, but also xml
     if ($this->getConfig()->isDemoShop()) {
         $oSmarty->php_handling = SMARTY_PHP_PASSTHRU;
     }
     foreach (array_keys($this->_aViewData) as $sViewName) {
         $oSmarty->assign_by_ref($sViewName, $this->_aViewData[$sViewName]);
     }
     // variables are set as deprecated, use getters
     // $oSmarty->assign('xmldef', $this->getXmlDef());
     // return rss xml, no further processing
     oxUtils::getInstance()->setHeader("Content-Type: text/xml; charset=" . oxLang::getInstance()->translateString("charset"));
     oxUtils::getInstance()->showMessageAndExit($this->_processOutput($oSmarty->fetch($this->_sThisTemplate, $this->getViewId())));
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:26,代码来源:rss.php


示例18: init

 /**
  * Sets self::$_aCollectedComponentNames to null, as views and widgets
  * controllers loads different components and calls parent::init()
  */
 public function init()
 {
     self::$_aCollectedComponentNames = null;
     if (!empty($this->_aComponentNames)) {
         foreach ($this->_aComponentNames as $sComponentName => $sCompCache) {
             $oActTopView = $this->getConfig()->getTopActiveView();
             if ($oActTopView) {
                 $this->_oaComponents[$sComponentName] = $oActTopView->getComponent($sComponentName);
                 if (!isset($this->_oaComponents[$sComponentName])) {
                     $this->_blLoadComponents = true;
                     break;
                 } else {
                     $this->_oaComponents[$sComponentName]->setParent($this);
                 }
             }
         }
     }
     parent::init();
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:23,代码来源:WidgetController.php


示例19: render

 public function render()
 {
     parent::render();
     if (!empty($this->_username)) {
         $ret = $this->_util->getRemoteContent($this->_username);
         $this->_ret = $ret;
         if (isset($ret['status'])) {
             oxRegistry::getUtils()->setHeader("HTTP/1.0 " . $ret['status']);
         }
         $this->setMetaDescription($ret['meta']['description']);
         unset($ret['meta']['description']);
         $this->getConfig()->setConfigParam('sFbAppId', '');
         // set this to empty because we will overwrite the FB/opengraph data in our template anyway, we dont want to display the ones coming from Azure templates
         if (isset($ret['meta']['keywords'])) {
             $this->setMetaKeywords($ret['meta']['keywords']);
         }
         $this->_aViewData['js_embed'] = $this->_util->getJsEmbedCode($this->_username, $this->_snippet_url);
         $this->_aViewData['css_embed'] = $this->_util->getCssEmbedCode($this->_username, $this->_snippet_url);
         $this->_aViewData['noscript_content'] = $ret['noscript_content'];
         $this->_aViewData['meta_author'] = $ret['meta']['author'];
         $this->_aViewData['meta'] = $this->createHeaderHtml($ret['meta']);
     }
     return $this->_sThisTemplate;
 }
开发者ID:styladev,项目名称:oxid,代码行数:24,代码来源:StylaSEO_Output.php


示例20: _prepareMetaKeyword

 /**
  * Returns current view keywords seperated by comma
  * If $sKeywords parameter comes empty, sets to it current content title
  *
  * @param string $sKeywords               data to use as keywords
  * @param bool   $blRemoveDuplicatedWords remove duplicated words
  *
  * @return string
  */
 protected function _prepareMetaKeyword($sKeywords, $blRemoveDuplicatedWords = true)
 {
     if (!$sKeywords) {
         $sKeywords = $this->getContent()->oxcontents__oxtitle->value;
     }
     return parent::_prepareMetaKeyword($sKeywords, $blRemoveDuplicatedWords);
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:16,代码来源:ContentController.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP oxUtilsObject类代码示例发布时间:2022-05-23
下一篇:
PHP oxTestModules类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap