本文整理匯總了PHP中CRatings::SetVoteGroup方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRatings::SetVoteGroup方法的具體用法?PHP CRatings::SetVoteGroup怎麽用?PHP CRatings::SetVoteGroup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRatings
的用法示例。
在下文中一共展示了CRatings::SetVoteGroup方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
COption::SetOptionString("main", "rating_start_authority", $ratingStartValue);
COption::SetOptionString("main", "rating_vote_show", $sRatingVoteShow);
COption::SetOptionString("main", "rating_vote_template", $sRatingVoteTemplate);
COption::SetOptionString("main", "rating_vote_type", $sRatingVoteType);
if ($sRatingVoteType == 'like')
{
COption::SetOptionString("main", "rating_text_like_y", $sRatingTextLikeY);
COption::SetOptionString("main", "rating_text_like_n", $sRatingTextLikeN);
COption::SetOptionString("main", "rating_text_like_d", $sRatingTextLikeD);
}
CRatings::SetAuthorityRating($ratingId);
CRatings::SetVoteGroup($_POST['RATING_VOTE_GROUP_ID'], 'R');
CRatings::SetVoteGroup($_POST['RATING_VOTE_AUTHORITY_GROUP_ID'], 'A');
if ($ratingAuthorityDefault > 0)
{
$arParams = array();
if ($ratingAuthorityDefault == 1)
$arParams['DEFAULT_CONFIG_NEW_USER'] = 'Y';
if ($ratingAuthorityDefault == 2)
$arParams['DEFAULT_USER_ACTIVE'] = 'Y';
if ($ratingAuthorityDefault == 3)
{
$arParams['DEFAULT_USER_ACTIVE'] = 'Y';
$arParams['DEFAULT_CONFIG_NEW_USER'] = 'Y';