PHP Класс vova07\fileapi\Widget

Наследование: extends yii\widgets\InputWidget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Защищенные свойства (Protected)

Свойство Тип Описание
$_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