Version: current

# Class RatingExtension

Расширение которе можно повесить на объект DataObject::add_extension('Image','RatingExtension');

  Extension
  DataObjectDecorator
  RatingExtension

Author: inxo, menedem
Located at rating/code/RatingExtension.php

## Methods summary

`public <type>` | # `extraStatics( )` Дополнительный поля для объекта Дополнительный поля для объекта #### Returns `<type>` <type> #### Overrides `DataObjectDecorator::extraStatics`
`public static` | # `allow_comments( mixed $allow = true )`
`public static` | # `set_comments_per_page( mixed $count )`
`public static` | # `set_max_rating( mixed $rating = 5 )`
`public static` | # `set_vote_cookie_lifetime( mixed $time )`
`public static` | # `set_need_auth( mixed $need = true )`
`public` | # `getRatingInt( )`
`public` | # `getRatingFloat( )`
`public` | # `getVotes( )`
`public` | # `VotesIteration( )`
`public` | # `MaxRatingIteration( )`
`public` | # `getAlreadyVote( )`
`public static` | # `VoteNeedAuth( )`
`public` | # `VoteForm( )`
`public` | # `VoteComments( )` Список комментариев с паджинацией Список комментариев с паджинацией return DataObjectSet
`public static` | # `genRatingID( )` md5 от случайной последовательности для засовывания в куку md5 от случайной последовательности для засовывания в куку return string

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `requireDefaultRecords()`, `updateCMSActions()`, `updateCMSFields()`, `updateFieldLabels()`, `updateFrontEndFields()`, `updateSummaryFields()`

### Methods inherited from Extension

`__construct()`, `clearOwner()`, `getOwner()`, `get_classname_without_arguments()`, `setOwner()`

### Magic methods summary

## Properties summary

`public mixed` | $RatingInt | #
`public mixed` | $RatingFloat | #
`public mixed` | $Votes | #
`public static boolean` | $allow_comments | #
`public static boolean` | $need_auth | #
`public static integer` | $commentsPerPage | #
`public static integer` | $max_rating | #
`public static integer` | $vote_cookie_lifetime | #

### Properties inherited from DataObjectDecorator

`$decoratable_statics`

### Properties inherited from Extension

`$allowed_actions`, `$class`, `$owner`, `$ownerBaseClass`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -