src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function NeedUserFieldForName()
    {
        $bNeedUserFieldForName = false;
        $oUser = TdbDataExtranetUser::GetInstance();
        $oModuleConfiguration = $this->GetModuleConfiguration();
        if ($oModuleConfiguration->fieldAllowWriteReviewLoggedinUsersOnly) {
            if (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $oModuleConfiguration->fieldOptionShowAuthorName) {
                $bNeedUserFieldForName = true;
            }
        } else {
            if (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $oModuleConfiguration->fieldOptionShowAuthorName || (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS == $oModuleConfiguration->fieldOptionShowAuthorName && !$oUser->IsLoggedIn()) || AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_FULL_NAME == $oModuleConfiguration->fieldOptionShowAuthorName && !$oUser->IsLoggedIn()) {
                $bNeedUserFieldForName = true;
            }
        }

        return $bNeedUserFieldForName;
    }
protected function NeedUserFieldForName()
    {
        $bNeedUserFieldForName = false;
        $oUser = TdbDataExtranetUser::GetInstance();
        $oModuleConfiguration = $this->GetModuleConfiguration();
        if ($oModuleConfiguration->fieldAllowWriteReviewLoggedinUsersOnly) {
            if (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $oModuleConfiguration->fieldOptionShowAuthorName) {
                $bNeedUserFieldForName = true;
            }
        } else {
            if (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $oModuleConfiguration->fieldOptionShowAuthorName || (AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_ALIAS == $oModuleConfiguration->fieldOptionShowAuthorName && !$oUser->IsLoggedIn()) || AuthorDisplayConstants::AUTHOR_DISPLAY_TYPE_FULL_NAME == $oModuleConfiguration->fieldOptionShowAuthorName && !$oUser->IsLoggedIn()) {
                $bNeedUserFieldForName = true;
            }
        }

        return $bNeedUserFieldForName;
    }
protected function NeedUserFieldForName ( ) { $ bNeedUserFieldForName = false ; $ oUser = TdbDataExtranetUser :: GetInstance ( ) ; $ oModuleConfiguration = $ this -> GetModuleConfiguration ( ) ; if ( $ oModuleConfiguration -> fieldAllowWriteReviewLoggedinUsersOnly ) { if ( AuthorDisplayConstants :: AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $ oModuleConfiguration -> fieldOptionShowAuthorName ) { $ bNeedUserFieldForName = true ; } } else { if ( AuthorDisplayConstants :: AUTHOR_DISPLAY_TYPE_ALIAS_PROVIDED == $ oModuleConfiguration -> fieldOptionShowAuthorName || ( AuthorDisplayConstants :: AUTHOR_DISPLAY_TYPE_ALIAS == $ oModuleConfiguration -> fieldOptionShowAuthorName && ! $ oUser -> IsLoggedIn ( ) ) || AuthorDisplayConstants :: AUTHOR_DISPLAY_TYPE_FULL_NAME == $ oModuleConfiguration -> fieldOptionShowAuthorName && ! $ oUser -> IsLoggedIn ( ) ) { $ bNeedUserFieldForName = true ; } } return $ bNeedUserFieldForName ; }
Checks if user have to enter user name manually or user name comes from logged in user.

@return bool
Checks if user have to enter user name manually or user name comes from logged in user .