| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup DolphinCore Dolphin Core
- * @{
- */
- /**
- * System services.
- */
- class BxBaseServices extends BxDol implements iBxDolProfileService {
- public function __construct() {
- parent::__construct();
- }
- public function serviceProfileUnit ($iContentId) {
- return $this->_serviceProfileFunc('getUnit', $iContentId);
- }
- public function serviceProfileAvatar ($iContentId) {
- return $this->_serviceProfileFunc('getAvatar', $iContentId);
- }
- public function serviceProfileThumb ($iContentId) {
- return $this->_serviceProfileFunc('getThumb', $iContentId);
- }
- public function serviceProfileIcon ($iContentId) {
- return $this->_serviceProfileFunc('getIcon', $iContentId);
- }
- public function serviceProfileName ($iContentId) {
- return $this->_serviceProfileFunc('getDisplayName', $iContentId);
- }
- public function serviceProfileUrl ($iContentId) {
- return $this->_serviceProfileFunc('getUrl', $iContentId);
- }
- public function _serviceProfileFunc ($sFunc, $iContentId) {
- if (!$iContentId)
- return false;
- if (!($oAccount = BxDolAccount::getInstance($iContentId)))
- return false;
- return $oAccount->$sFunc();
- }
- }
- /** @} */
|