Backend\Modules\FormBuilder\Engine\Api::entriesDelete PHP Метод

entriesDelete() публичный статический Метод

Delete entry/entries.
public static entriesDelete ( string $id )
$id string The id/ids of the entries(s) to delete.
    public static function entriesDelete($id)
    {
        // authorize
        if (BaseAPI::isAuthorized() && BaseAPI::isValidRequestMethod('POST')) {
            // redefine
            if (!is_array($id)) {
                $id = (array) explode(',', $id);
            }
            // update statuses
            BackendFormBuilderModel::deleteData($id);
        }
    }