Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
init ( ) | ||
run ( ) : array | |
Method | Description | |
---|---|---|
getModelErrors ( |
Helper function | |
unlink ( mixed $id ) | Removed |
protected getModelErrors ( |
||
$model | ||
return | array |
public $idParamName |
public $ownerLinkTable |
public $ownerLinkTableAttribute |
public $redirectRoute |