PHP 클래스 kartik\social\Widget

부터: 1.0
저자: Kartik Visweswaran ([email protected])
상속: extends yii\base\Widget
파일 보기 프로젝트 열기: kartik-v/yii2-social 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$content the content to be embedded in between the plugin tag
$dataApiPrefix text to be prefixed for the data api
$i18n the the internalization configuration for this widget
$language the language used in displaying content. If not provided, defaults to en_US.
$moduleName the name of the module
$noscript text to be displayed if browser does not support javascript. If set to false will not displayed;
$noscriptOptions HTML attributes for the noscript message container
$options the HTML attributes for the plugin container.
$settings the social plugin settings
$tag the tag for enclosing the plugin. Defaults to 'div'.
$type the social plugin type

보호된 프로퍼티들

프로퍼티 타입 설명
$validPlugins the valid plugins

공개 메소드들

메소드 설명
getConfig ( string $widget ) : array Gets configuration for a widget from the module
init ( ) Initialize the widget
setConfig ( string $widget ) Sets configuration for a widget based on the module level configuration

보호된 메소드들

메소드 설명
renderNoScript ( ) : string Generates the noscript container
renderPlugin ( ) : string Generates the plugin markup
setPluginOptions ( boolean $convertLowerCase = true ) Sets the options for the plugin

메소드 상세

getConfig() 공개 메소드

Gets configuration for a widget from the module
public getConfig ( string $widget ) : array
$widget string name of the widget
리턴 array

init() 공개 메소드

Initialize the widget
public init ( )

renderNoScript() 보호된 메소드

Generates the noscript container
protected renderNoScript ( ) : string
리턴 string

renderPlugin() 보호된 메소드

Generates the plugin markup
protected renderPlugin ( ) : string
리턴 string

setConfig() 공개 메소드

Sets configuration for a widget based on the module level configuration
public setConfig ( string $widget )
$widget string name of the widget

setPluginOptions() 보호된 메소드

Sets the options for the plugin
protected setPluginOptions ( boolean $convertLowerCase = true )
$convertLowerCase boolean

프로퍼티 상세

$content 공개적으로 프로퍼티

the content to be embedded in between the plugin tag
public $content

$dataApiPrefix 공개적으로 프로퍼티

text to be prefixed for the data api
public $dataApiPrefix

$i18n 공개적으로 프로퍼티

the the internalization configuration for this widget
public $i18n

$language 공개적으로 프로퍼티

the language used in displaying content. If not provided, defaults to en_US.
public $language

$moduleName 공개적으로 프로퍼티

the name of the module
public $moduleName

$noscript 공개적으로 프로퍼티

text to be displayed if browser does not support javascript. If set to false will not displayed;
public $noscript

$noscriptOptions 공개적으로 프로퍼티

HTML attributes for the noscript message container
public $noscriptOptions

$options 공개적으로 프로퍼티

the HTML attributes for the plugin container.
public $options

$settings 공개적으로 프로퍼티

the social plugin settings
public $settings

$tag 공개적으로 프로퍼티

the tag for enclosing the plugin. Defaults to 'div'.
public $tag

$type 공개적으로 프로퍼티

the social plugin type
public $type

$validPlugins 보호되어 있는 프로퍼티

the valid plugins
protected $validPlugins