PHP 클래스 Prado\Web\UI\WebControls\TRatingList

This class is EXPERIMENTAL.
부터: 3.0
상속: extends TRadioButtonList
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Sets the default repeat direction to horizontal.
getAllowInput ( ) : boolean Wrapper for {@link setReadOnly ReadOnly} property.
getCaption ( ) : string
getCaptionID ( ) : string
getHalfRatingInterval ( ) : array
getRating ( ) : float
getRatingStyle ( ) : TRatingListStyle
getReadOnly ( ) : boolean
onPreRender ( $param ) Publish the the rating style css file and rating image files.
onSelectedIndexChanged ( $param )
render ( $writer ) Add rating style class name to the class attribute when {@link setReadOnly ReadOnly} property is true and when the {@link setCssClass CssClass} property is empty.
setAllowInput ( $value ) Wrapper for {@link setReadOnly ReadOnly} property.
setCaption ( $value ) : TRatingListStyle
setCaptionID ( $value )
setEnabled ( $value ) Wrapper for {@link setReadOnly ReadOnly} property.
setHalfRatingInterval ( $value ) Sets the interval such that those rating values within the interval will be considered as a half star rating.
setRating ( $value )
setRatingStyle ( $value )
setReadOnly ( $value )
setRepeatLayout ( $value ) The repeat layout must be Table.
setSelectedIndex ( $value )

보호된 메소드들

메소드 설명
getAssetUrl ( $file = '' ) : string
getCaptionControl ( )
getCaptionControlID ( ) : string
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.
getPostBackOptions ( ) : array
getRatingIndex ( $rating ) : integer
getRatingStyleCssClass ( ) : string
publishImages ( $style, $fileExt = '.gif' ) : array
publishStyle ( $style ) : string
registerClientScript ( ) Registers the relevant JavaScript.

메소드 상세

__construct() 공개 메소드

Sets the default repeat direction to horizontal.
public __construct ( )

getAllowInput() 공개 메소드

Wrapper for {@link setReadOnly ReadOnly} property.
public getAllowInput ( ) : boolean
리턴 boolean whether the rating list can be edited. Defaults to true.

getAssetUrl() 보호된 메소드

protected getAssetUrl ( $file = '' ) : string
리턴 string asset file url.

getCaption() 공개 메소드

public getCaption ( ) : string
리턴 string caption text. Default is "Rate It:".

getCaptionControl() 보호된 메소드

protected getCaptionControl ( )

getCaptionControlID() 보호된 메소드

protected getCaptionControlID ( ) : string
리턴 string find the client ID of the caption control.

getCaptionID() 공개 메소드

public getCaptionID ( ) : string
리턴 string control or html element ID for displaying a caption.

getClientClassName() 보호된 메소드

This method overrides the parent implementation.
protected getClientClassName ( ) : string
리턴 string the javascript class name

getHalfRatingInterval() 공개 메소드

public getHalfRatingInterval ( ) : array
리턴 array rating display half value interval, default is array(0.3, 0.7);

getPostBackOptions() 보호된 메소드

protected getPostBackOptions ( ) : array
리턴 array list of post back options.

getRating() 공개 메소드

public getRating ( ) : float
리턴 float rating value.

getRatingIndex() 보호된 메소드

protected getRatingIndex ( $rating ) : integer
리턴 integer rating as integer

getRatingStyle() 공개 메소드

public getRatingStyle ( ) : TRatingListStyle
리턴 TRatingListStyle current rating style

getRatingStyleCssClass() 보호된 메소드

protected getRatingStyleCssClass ( ) : string
리턴 string rating style css class name.

getReadOnly() 공개 메소드

public getReadOnly ( ) : boolean
리턴 boolean whether the items in the column can be edited. Defaults to false.

onPreRender() 공개 메소드

Publish the the rating style css file and rating image files.
public onPreRender ( $param )

onSelectedIndexChanged() 공개 메소드

public onSelectedIndexChanged ( $param )

publishImages() 보호된 메소드

protected publishImages ( $style, $fileExt = '.gif' ) : array
리턴 array URL of publish the rating images

publishStyle() 보호된 메소드

protected publishStyle ( $style ) : string
리턴 string URL of the css style file

registerClientScript() 보호된 메소드

Registers the relevant JavaScript.
protected registerClientScript ( )

render() 공개 메소드

Add rating style class name to the class attribute when {@link setReadOnly ReadOnly} property is true and when the {@link setCssClass CssClass} property is empty.
public render ( $writer )

setAllowInput() 공개 메소드

Wrapper for {@link setReadOnly ReadOnly} property.
public setAllowInput ( $value )

setCaption() 공개 메소드

public setCaption ( $value ) : TRatingListStyle
리턴 TRatingListStyle current rating style

setCaptionID() 공개 메소드

public setCaptionID ( $value )

setEnabled() 공개 메소드

Wrapper for {@link setReadOnly ReadOnly} property.
public setEnabled ( $value )

setHalfRatingInterval() 공개 메소드

Sets the interval such that those rating values within the interval will be considered as a half star rating.
public setHalfRatingInterval ( $value )

setRating() 공개 메소드

public setRating ( $value )

setRatingStyle() 공개 메소드

public setRatingStyle ( $value )

setReadOnly() 공개 메소드

public setReadOnly ( $value )

setRepeatLayout() 공개 메소드

The repeat layout must be Table.
public setRepeatLayout ( $value )

setSelectedIndex() 공개 메소드

public setSelectedIndex ( $value )