菜单

typo3插件互相调用方法

2011年01月12日 - typo3

/*
* displayContact
*@param type: agency or customers
*@param data: data uid
*@param pageid: contact page id
*/
protected function displayContact($type, $data, $pageid) {
// Get default configuration
$conf = $GLOBALS[‘TSFE’]->tmpl->setup[‘plugin.’][‘tx_demodata_pi4.’];
// Modify this configuration
$conf += array(‘type’ => $type,’data’ => $data,’pageid’ => $pageid);
// Get page
$cObj = t3lib_div::makeInstance(‘tslib_cObj’);
/* @var $cObj tslib_cObj */
$cObj->start(array(), ”);
return $cObj->cObjGetSingle(‘USER’, $conf);
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注