BxDolTwigModule::_serviceGetMemberMenuItem PHP Method

_serviceGetMemberMenuItem() public method

public _serviceGetMemberMenuItem ( $sTitle, $sAlt, $sIcon, $isExtraCount = true, $sLinkAppend = '' )
    function _serviceGetMemberMenuItem($sTitle, $sAlt, $sIcon, $isExtraCount = true, $sLinkAppend = '')
    {
        if (!$this->_iProfileId) {
            return '';
        }
        $oMemberMenu = bx_instance('BxDolMemberMenu');
        $aLinkInfo = array('item_img_src' => $sIcon, 'item_img_alt' => $sAlt, 'item_link' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'browse/my/' . $sLinkAppend, 'item_title' => $sTitle, 'extra_info' => $isExtraCount ? $this->_oDb->getCountByAuthorAndStatus($this->_iProfileId, 'approved') + $this->_oDb->getCountByAuthorAndStatus($this->_iProfileId, 'pending') : '');
        return $oMemberMenu->getGetExtraMenuLink($aLinkInfo);
    }

Usage Example

コード例 #1
0
 function serviceGetMemberMenuItemAddContent()
 {
     if (!$this->isAllowedAdd()) {
         return '';
     }
     return parent::_serviceGetMemberMenuItem(_t('_bx_store_products_single'), _t('_bx_store_products_single'), 'shopping-cart', false, '&bx_store_filter=add_product');
 }
All Usage Examples Of BxDolTwigModule::_serviceGetMemberMenuItem