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


PHP shopFunctionsF::getComUserOption方法代码示例

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


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

示例1: defined

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
//set variables, usually set by shopfunctionsf::getLoginForm in case this layout is differently used
if (!isset($this->show)) {
    $this->show = TRUE;
}
if (!isset($this->from_cart)) {
    $this->from_cart = FALSE;
}
if (!isset($this->order)) {
    $this->order = FALSE;
}
if (!class_exists('shopFunctionsF')) {
    require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
}
$comUserOption = shopFunctionsF::getComUserOption();
if (empty($this->url)) {
    $url = vmURI::getCleanUrl();
} else {
    $url = $this->url;
}
$user = JFactory::getUser();
if ($this->show and $user->id == 0) {
    JHtml::_('behavior.formvalidation');
    JHTML::_('behavior.modal');
    //Extra login stuff, systems like openId and plugins HERE
    if (JPluginHelper::isEnabled('authentication', 'openid')) {
        $lang = JFactory::getLanguage();
        $lang->load('plg_authentication_openid', JPATH_ADMINISTRATOR);
        $langScript = '
//<![CDATA[
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:31,代码来源:login.php

示例2: lUser

 function lUser()
 {
     $_groupList = $this->_model->getGroupList();
     if (!is_array($_groupList)) {
         $this->_lists['gid'] = '<input type="hidden" name="gid" value="' . $this->_userDetails->JUser->get('gid') . '" /><strong>' . JText::_($_groupList) . '</strong>';
     } else {
         $this->_lists['gid'] = JHTML::_('select.genericlist', $_groupList, 'gid', 'size="10"', 'value', 'text', $this->_userDetails->JUser->get('gid'));
     }
     if (!class_exists('shopFunctionsF')) {
         require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
     }
     $comUserOption = shopFunctionsF::getComUserOption();
     $this->_lists['canBlock'] = $this->_currentUser->authorize($comUserOption, 'block user') && $this->_model->getId() != $this->_cuid;
     // Can't block myself TODO I broke that, please retest if it is working again
     $this->_lists['canSetMailopt'] = $this->_currentUser->authorize('workflow', 'email_events');
     $this->_lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox"', $this->_userDetails->JUser->get('block'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO');
     $this->_lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox"', $this->_userDetails->JUser->get('sendEmail'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO');
     $this->_lists['params'] = $this->_userDetails->JUser->getParameters(true);
     $this->_lists['custnumber'] = $this->_model->getCustomerNumberById();
     //TODO I do not understand for what we have that by Max.
     if ($this->_model->getId() < 1) {
         $this->_lists['register_new'] = 1;
     } else {
         $this->_lists['register_new'] = 0;
     }
 }
开发者ID:anddm2001,项目名称:akvashop.ru,代码行数:26,代码来源:view.html.php


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