PHP 클래스 vova07\fileapi\Widget

상속: extends yii\widgets\InputWidget
파일 보기 프로젝트 열기: vova07/yii2-fileapi-widget 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$browseGlyphicon Show/Hide browse glyphicon
$callbacks FileAPI events array
$crop Enable/disable crop
$cropResizeHeight Crop resize height
$cropResizeMaxHeight Crop resize max height
$cropResizeMaxWidth Crop resize max width
$cropResizeWidth Crop resize width
$jcropSettings JCrop settings
$paramName The parameter name for the file form data (the request argument name)
$preview Enable/disable files preview
$selector FileAPI selector
$settings Widget settings.
$template Widget template view

보호된 프로퍼티들

프로퍼티 타입 설명
$_attributeName Real attribute name without any indexes in case this are setted

공개 메소드들

메소드 설명
getSelector ( ) : string
init ( )
register ( ) Register all widget scripts and callbacks
registerClientScript ( ) Register widget asset.
registerFiles ( ) Registering already uploaded files.
registerTranslations ( ) Register widget translations.
run ( )
t ( string $category, string $message, array $params = [], string $language = null ) : string Widget translation function.

보호된 메소드들

메소드 설명
getAttributeName ( ) : null | string
registerCallbacks ( ) Register widget callbacks.
registerDefaultCallbacks ( ) Register default widget callbacks
registerMainClientScript ( ) Register widget main asset.

메소드 상세

getAttributeName() 보호된 메소드

protected getAttributeName ( ) : null | string
리턴 null | string Real attribute name without any indexes in case this are setted

getSelector() 공개 메소드

public getSelector ( ) : string
리턴 string Widget selector

init() 공개 메소드

public init ( )

register() 공개 메소드

Register all widget scripts and callbacks
public register ( )

registerCallbacks() 보호된 메소드

Register widget callbacks.
protected registerCallbacks ( )

registerClientScript() 공개 메소드

Register widget asset.

registerDefaultCallbacks() 보호된 메소드

Register default widget callbacks
protected registerDefaultCallbacks ( )

registerFiles() 공개 메소드

Registering already uploaded files.
public registerFiles ( )

registerMainClientScript() 보호된 메소드

Register widget main asset.
protected registerMainClientScript ( )

registerTranslations() 공개 메소드

Register widget translations.

run() 공개 메소드

public run ( )

t() 공개 정적인 메소드

Widget translation function.
public static t ( string $category, string $message, array $params = [], string $language = null ) : string
$category string the message category.
$message string the message to be translated.
$params array the parameters that will be used to replace the corresponding placeholders in the message.
$language string the language code (e.g. `en-US`, `en`). If this is null, the current [[\yii\base\Application::language|application language]] will be used.
리턴 string the translated message.

프로퍼티 상세

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

Real attribute name without any indexes in case this are setted
protected $_attributeName

$browseGlyphicon 공개적으로 프로퍼티

Show/Hide browse glyphicon
public $browseGlyphicon

$callbacks 공개적으로 프로퍼티

FileAPI events array
public $callbacks

$crop 공개적으로 프로퍼티

Enable/disable crop
public $crop

$cropResizeHeight 공개적으로 프로퍼티

Crop resize height
public $cropResizeHeight

$cropResizeMaxHeight 공개적으로 프로퍼티

Crop resize max height
public $cropResizeMaxHeight

$cropResizeMaxWidth 공개적으로 프로퍼티

Crop resize max width
public $cropResizeMaxWidth

$cropResizeWidth 공개적으로 프로퍼티

Crop resize width
public $cropResizeWidth

$jcropSettings 공개적으로 프로퍼티

JCrop settings
public $jcropSettings

$paramName 공개적으로 프로퍼티

The parameter name for the file form data (the request argument name)
public $paramName

$preview 공개적으로 프로퍼티

Enable/disable files preview
public $preview

$selector 공개적으로 프로퍼티

FileAPI selector
public $selector

$settings 공개적으로 프로퍼티

Widget settings.
public $settings

$template 공개적으로 프로퍼티

Widget template view
또한 보기: yii\base\Widget::render
public $template