BxDolProfile::getProfileData PHP Method

getProfileData() public method

return assoc array of all frofile fields
public getProfileData ( )
    function getProfileData()
    {
        global $aUser;
        $bUseCacheSystem = getParam('enable_cache_system') == 'on' ? true : false;
        $oPDb = new BxDolProfileQuery();
        $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iProfileID . '.php';
        if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
            require_once $sProfileCache;
            $this->_aProfile = $aUser[$this->_iProfileID];
        } else {
            $this->_aProfile = $oPDb->getProfileDataById($this->_iProfileID);
        }
        //get couple data
        if ($this->_aProfile['Couple']) {
            $this->bCouple = true;
            $this->_iCoupleID = $this->_aProfile['Couple'];
            $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iCoupleID . '.php';
            if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
                require_once $sProfileCache;
                $this->_aCouple = $aUser[$this->_iCoupleID];
            } else {
                $this->_aCouple = $oPDb->getProfileDataById($this->_iCoupleID);
            }
        }
        return $this->_aProfile;
    }