PHP Класс dosamigos\fileupload\actions\FileDeleteAction

Автор: Antonio Ramirez ([email protected])
Наследование: extends yii\base\Action
Показать файл Открыть проект

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

Свойство Тип Описание
$className the AR class name that we need to delete
$idParamName the parameter name in the request. Defaults to 'id'.
$ownerLinkTable the name of the table handling relations -ie city_picture_assn
$ownerLinkTableAttribute the name of the attribute of the class we are going to delete -ie picture_id
$redirectRoute the route to redirect after successful deletion. Note: If the user is doing and AJAX'ed request. Will simply return a JSON with success true or false. If success it will contain a message, otherwise will contain also errors key so you can display the issues on a notification plugin or whatever.

Открытые методы

Метод Описание
init ( )
run ( ) : array | Response

Защищенные методы

Метод Описание
getModelErrors ( Model $model ) : array Helper function
unlink ( mixed $id ) Removed

Описание методов

getModelErrors() защищенный Метод

Helper function
protected getModelErrors ( Model $model ) : array
$model yii\base\Model
Результат array

init() публичный Метод

public init ( )

run() публичный Метод

public run ( ) : array | Response
Результат array | yii\web\Response

Описание свойств

$className публичное свойство

the AR class name that we need to delete
public $className

$idParamName публичное свойство

the parameter name in the request. Defaults to 'id'.
public $idParamName

$ownerLinkTable публичное свойство

the name of the table handling relations -ie city_picture_assn
public $ownerLinkTable

$ownerLinkTableAttribute публичное свойство

the name of the attribute of the class we are going to delete -ie picture_id
public $ownerLinkTableAttribute

$redirectRoute публичное свойство

the route to redirect after successful deletion. Note: If the user is doing and AJAX'ed request. Will simply return a JSON with success true or false. If success it will contain a message, otherwise will contain also errors key so you can display the issues on a notification plugin or whatever.
public $redirectRoute