public function initUserProfile($username)
    {
        /* @var $profileService profileService */
        $profileService = Openbizx::getService(PROFILE_SERVICE);
        if (method_exists($profileService, 'InitProfile')) {
            $profile = $profileService->initProfile($username);
        } else {
            $profile = $profileService->getProfile($username);
        }
        $this->getSessionContext()->setVar("_USER_PROFILE", $profile);
        return $profile;
    }
public function initUserProfile($username)
    {
        /* @var $profileService profileService */
        $profileService = Openbizx::getService(PROFILE_SERVICE);
        if (method_exists($profileService, 'InitProfile')) {
            $profile = $profileService->initProfile($username);
        } else {
            $profile = $profileService->getProfile($username);
        }
        $this->getSessionContext()->setVar("_USER_PROFILE", $profile);
        return $profile;
    }
public function initUserProfile ( $ username ) { /* @var $profileService profileService */ $ profileService = Openbizx :: getService ( PROFILE_SERVICE ) ; if ( method_exists ( $ profileService , 'InitProfile' ) ) { $ profile = $ profileService -> initProfile ( $ username ) ; } else { $ profile = $ profileService -> getProfile ( $ username ) ; } $ this -> getSessionContext ( ) -> setVar ( "_USER_PROFILE" , $ profile ) ; return $ profile ; }
Initialize User Profile

@param string $username
@return array Profile array
@todo need to move, only used in profileService
Initialize User Profile