|
|
@@ -9,7 +9,7 @@
|
|
|
* @{
|
|
|
*/
|
|
|
|
|
|
-class BxBaseModPaymentModule extends BxDolModule
|
|
|
+class BxBaseModPaymentModule extends BxBaseModGeneralModule
|
|
|
{
|
|
|
protected $_sLangsPrefix;
|
|
|
|
|
|
@@ -78,39 +78,6 @@ class BxBaseModPaymentModule extends BxDolModule
|
|
|
));
|
|
|
}
|
|
|
|
|
|
- public function getProfileId()
|
|
|
- {
|
|
|
- return bx_get_logged_profile_id();
|
|
|
- }
|
|
|
-
|
|
|
- public function getProfileInfo($iUserId = 0)
|
|
|
- {
|
|
|
- $oProfile = $this->getObjectUser($iUserId);
|
|
|
- $oAccount = $oProfile->getAccountObject();
|
|
|
-
|
|
|
- return array(
|
|
|
- 'id' => $oProfile->id(),
|
|
|
- 'name' => $oProfile->getDisplayName(),
|
|
|
- 'email' => $oAccount->getEmail(),
|
|
|
- 'link' => $oProfile->getUrl(),
|
|
|
- 'icon' => $oProfile->getIcon(),
|
|
|
- 'unit' => $oProfile->getUnit(),
|
|
|
- 'active' => $oProfile->isActive(),
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- public function getObjectUser($iUserId = 0)
|
|
|
- {
|
|
|
- bx_import('BxDolProfile');
|
|
|
- $oProfile = BxDolProfile::getInstance($iUserId);
|
|
|
- if (!$oProfile) {
|
|
|
- bx_import('BxDolProfileUndefined');
|
|
|
- $oProfile = BxDolProfileUndefined::getInstance();
|
|
|
- }
|
|
|
-
|
|
|
- return $oProfile;
|
|
|
- }
|
|
|
-
|
|
|
public function getObjectJoin()
|
|
|
{
|
|
|
$sClassName = $this->_oConfig->getClassPrefix() . 'Join';
|