Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
DraftsController
PHP Class DraftsController, vanilla
Inheritance:
extends
VanillaController
Exibir arquivo
Open project: vanilla/vanilla
Public Properties
Property
Type
Description
$Uses
Models to include.
Public Methods
Method
Description
delete
(
integer
$DraftID
= '',
string
$TransientKey
= '' )
Delete a single draft.
index
(
integer
$Offset
= '0' )
Default all drafts view: chronological by time saved.
Method Details
delete()
public
method
Redirects user back to Index unless DeliveryType is set.
Since:
2.0.0
public
delete
(
integer
$DraftID
= '',
string
$TransientKey
= '' )
$DraftID
integer
Unique ID of draft to be deleted.
$TransientKey
string
Single-use hash to prove intent.
index()
public
method
Default all drafts view: chronological by time saved.
Since:
2.0.0
public
index
(
integer
$Offset
= '0' )
$Offset
integer
Number of drafts to skip.
Property Details
$Uses
public_oe property
Models to include.
public
$Uses