Architecture
How UNA 15 is put together — core, modules, Studio, the API, and the NEO and template frontends. bx_srv('system', 'is_module_profile', $sModuleName)
bx_srv('system', 'is_module_context', $sModuleName)
bx_srv('system', 'is_module_content', $sModuleName)
BxBaseModGeneralModule extends BxDolModule
BxBaseModGroupsModule extends BxBaseModProfileModule
BxBaseModNotificationsModule extends BxBaseModGeneralModule
BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolContentInfoService, iBxDolProfileService
BxBaseModTextModule extends BxBaseModGeneralModule implements iBxDolContentInfoService
bx_srv('module', 'method', [...])
public function serviceGetProfileInfo($iProfileId)
{
return $aProfileInfo;
}
$aProfileInfo = bx_srv('profiles', 'get_profile_info', [$iProfileId]);
bx_alert('type', 'action', $objectId, $profileId)
bx_alert('bx_posts', 'add', $iPostId, $iProfileId, [
'content' => $sContent,
'title' => $sTitle,
'module' => $this->_oConfig->getName()
]);
{
"code": 0,
"message": "Success",
"data": {}
}
4w