GD Star Rating
integration functions
Functions |
|
wp_gdsr_blog_rating ($select="postpage", $show="total") | |
Returns calculated data for average blog rating including bayesian estimate mean. |
|
wp_gdsr_rating_multi ($multi_set_id=0, $post_id=0) | |
Returns object with all needed multi rating properties for post or page. |
|
wp_gdsr_rating_article ($post_id=0) | |
Returns object with all needed rating properties for post or page. |
|
wp_gdsr_rating_comment ($comment_id=0) | |
Returns object with all needed rating properties for comment. |
|
wp_gdsr_dump ($msg, $obj, $block="none", $mode="a+", $force=false) | |
Writes a object dump into the log file. |
|
wp_gdsr_debug_clean () | |
Truncates log file to zero lenght deleting all data inside. |
|
wp_gdsr_render_powered_by ($echo=true) | |
Renders small 80x15 powered by GD Star Rating button. |
|
wp_gdsr_integration_readonly ($standard=false, $multis=false) | |
Makes rating blocks readonly regardless of other settings. |
|
wp_gdsr_multi_review_editor_header ($echo=true) | |
Renders multi rating review header elements css and javascript. |
|
gd_get_multi_set ($id=0) | |
Gets the multi rating set. |
|
gdsr_get_multi_set ($user_id, $limit=100, $filter=array()) | |
Get the array with objects with user votes. |
|
gdsr_get_multi_set ($post_id=0) | |
Get multi set id based on global and categoires rules. |
|
is_msie6 () | |
Determines if the browser accessing the page is MS Internet Explorer 6. |
wp_gdsr_blog_rating | ( | $ | select = "postpage" , |
|
$ | show = "total" |
|||
) |
Returns calculated data for average blog rating including bayesian estimate mean.
class $gdsr
- Parameters:
-
string $select articles to select postpage|post|page string $show votes to use: total|users|visitors
- Returns:
- object with average blog rating values
wp_gdsr_rating_article | ( | $ | post_id = 0 |
) |
Returns object with all needed rating properties for post or page.
object $post post data GDStarRating $gdsr main rating class instance
- Parameters:
-
int $post_id post to get rating for, leave 0 to get post from loop
- Returns:
- object rating post properties
wp_gdsr_rating_comment | ( | $ | comment_id = 0 |
) |
Returns object with all needed rating properties for comment.
object $comment comment data GDStarRating $gdsr main rating class instance
- Parameters:
-
int $post_id post to get rating for, leave 0 to get post from loop
- Returns:
- object rating post properties
wp_gdsr_rating_multi | ( | $ | multi_set_id = 0 , |
|
$ | post_id = 0 |
|||
) |
Returns object with all needed multi rating properties for post or page.
object $post post data GDStarRating $gdsr main rating class instance
- Parameters:
-
int $set_id id of the multi rating set int $post_id post to get rating for, leave 0 to get post from loop
- Returns:
- object rating post properties
gd_get_multi_set | ( | $ | id = 0 |
) |
Gets the multi rating set.
- Parameters:
-
int $id set id
- Returns:
- GDMultiSingle multi rating set
is_msie6 | ( | ) |
Determines if the browser accessing the page is MS Internet Explorer 6.
- Returns:
- bool true if the browser is IE6