PHP Class vova07\fileapi\Widget

Inheritance: extends yii\widgets\InputWidget
Mostrar archivo Open project: vova07/yii2-fileapi-widget Class Usage Examples

Public Properties

Property Type Description
$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 Properties

Property Type Description
$_attributeName Real attribute name without any indexes in case this are setted

Public Methods

Method Description
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.

Protected Methods

Method Description
getAttributeName ( ) : null | string
registerCallbacks ( ) Register widget callbacks.
registerDefaultCallbacks ( ) Register default widget callbacks
registerMainClientScript ( ) Register widget main asset.

Method Details

getAttributeName() protected method

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

getSelector() public method

public getSelector ( ) : string
return string Widget selector

init() public method

public init ( )

register() public method

Register all widget scripts and callbacks
public register ( )

registerCallbacks() protected method

Register widget callbacks.
protected registerCallbacks ( )

registerClientScript() public method

Register widget asset.

registerDefaultCallbacks() protected method

Register default widget callbacks
protected registerDefaultCallbacks ( )

registerFiles() public method

Registering already uploaded files.
public registerFiles ( )

registerMainClientScript() protected method

Register widget main asset.
protected registerMainClientScript ( )

registerTranslations() public method

Register widget translations.

run() public method

public run ( )

t() public static method

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.
return string the translated message.

Property Details

$_attributeName protected_oe property

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

$browseGlyphicon public_oe property

Show/Hide browse glyphicon
public $browseGlyphicon

$callbacks public_oe property

FileAPI events array
public $callbacks

$crop public_oe property

Enable/disable crop
public $crop

$cropResizeHeight public_oe property

Crop resize height
public $cropResizeHeight

$cropResizeMaxHeight public_oe property

Crop resize max height
public $cropResizeMaxHeight

$cropResizeMaxWidth public_oe property

Crop resize max width
public $cropResizeMaxWidth

$cropResizeWidth public_oe property

Crop resize width
public $cropResizeWidth

$jcropSettings public_oe property

JCrop settings
public $jcropSettings

$paramName public_oe property

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

$preview public_oe property

Enable/disable files preview
public $preview

$selector public_oe property

FileAPI selector
public $selector

$settings public_oe property

Widget settings.
public $settings

$template public_oe property

Widget template view
See also: yii\base\Widget::render
public $template