本文整理匯總了PHP中BxDolService::getSerializedService方法的典型用法代碼示例。如果您正苦於以下問題:PHP BxDolService::getSerializedService方法的具體用法?PHP BxDolService::getSerializedService怎麽用?PHP BxDolService::getSerializedService使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BxDolService
的用法示例。
在下文中一共展示了BxDolService::getSerializedService方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getCommentsBlock
/**
* get full comments block with initializations
*/
function getCommentsBlock($iParentId = 0, $iVParentId = 0, $bInDesignbox = true)
{
$aBp = array('parent_id' => $iParentId, 'vparent_id' => $iVParentId);
$aDp = array('show_empty' => true);
//add live update
$sServiceCall = BxDolService::getSerializedService('system', 'get_live_updates_comments', array($this->_sSystem, $this->_iId, $this->_getAuthorId()), 'TemplCmtsServices');
bx_import('BxDolLiveUpdates');
BxDolLiveUpdates::getInstance()->add($this->_sSystem . '_live_updates_cmts', 1, $sServiceCall);
//add live update
$sCaption = _t('_cmt_block_comments_title', $this->getCommentsCount());
$sContent = BxDolTemplate::getInstance()->parseHtmlByName('comments_block.html', array('system' => $this->_sSystem, 'list_anchor' => $this->getListAnchor(), 'id' => $this->getId(), 'comments' => $this->getComments($aBp, $aDp), 'post_form_top' => $this->getFormBoxPost($aBp, array('type' => $this->_sDisplayType, 'position' => BX_CMT_PFP_TOP)), 'post_form_bottom' => $this->getFormBoxPost($aBp, array('type' => $this->_sDisplayType, 'position' => BX_CMT_PFP_BOTTOM)), 'view_image_popup' => $this->_getViewImagePopup(), 'script' => $this->getJsScript()));
return $bInDesignbox ? DesignBoxContent($sCaption, $sContent, BX_DB_PADDING_DEF, $this->_getControlsBox()) : array('title' => $sCaption, 'content' => $sContent, 'designbox_id' => BX_DB_PADDING_DEF, 'menu' => $this->_getControlsBox());
}