PHP Class pendalf89\filemanager\behaviors\MediafileBehavior

Inheritance: extends yii\base\Behavior
Datei anzeigen Open project: pendalf89/yii2-filemanager Class Usage Examples

Public Properties

Property Type Description
$attributes owner mediafiles attributes names
$name owner name

Public Methods

Method Description
addOwners ( ) Add owners to mediafile
deleteOwners ( ) Delete owners of mediafile
events ( ) : array
imageURL ( string $alias, boolean | string $attribute = false ) : boolean | string Возвращает ссылку на миниатюру, заданную через аргументы $attribute и $alias
updateOwners ( ) Update owners of mediafile

Private Methods

Method Description
loadModel ( integer $id ) : Mediafile Load model by id

Method Details

addOwners() public method

Add owners to mediafile
public addOwners ( )

deleteOwners() public method

Delete owners of mediafile
public deleteOwners ( )

events() public method

public events ( ) : array
return array

imageURL() public method

Возвращает ссылку на миниатюру, заданную через аргументы $attribute и $alias
public imageURL ( string $alias, boolean | string $attribute = false ) : boolean | string
$alias string Наименование миниатюры, задается в конфигурации filemanager
$attribute boolean | string Наименование атрибута (на случай, если в поведении казано несколько атрибутов)
return boolean | string Вернет false, если нет атрибутов или указанный не найден.

updateOwners() public method

Update owners of mediafile
public updateOwners ( )

Property Details

$attributes public_oe property

owner mediafiles attributes names
public $attributes

$name public_oe property

owner name
public $name