\Kendo\UI\EditorFileBrowserTransportCreate

A PHP class representing the create setting of EditorFileBrowserTransport.

Methods

contentType

The content-type HTTP header sent to the server. Default is "application/x-www-form-urlencoded". Use "application/json" if the content is JSON. Refer to the jQuery.ajax documentation for further info.

Returns

\Kendo\UI\EditorFileBrowserTransportCreate

Parameters

$value string

Example

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->contentType('value');
?>

data

Data to be send to the server. Refer to the jQuery.ajax documentation for further info.

Returns

\Kendo\UI\EditorFileBrowserTransportCreate

Parameters

$value |string|\Kendo\JavaScriptFunction

Example - using

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->data(new ());
?>

Example - using string

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->data('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->data(new \Kendo\JavaScriptFunction('function() { }'));
?>

dataType

The type of data that you're expecting back from the server. Commonly used values are "json" and "jsonp". Refer to the jQuery.ajax documentation for further info.

Returns

\Kendo\UI\EditorFileBrowserTransportCreate

Parameters

$value string

Example

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->dataType('value');
?>

type

The type of request to make ("POST", "GET", "PUT" or "DELETE"), default is "POST". Refer to the jQuery.ajax documentation for further info.

Returns

\Kendo\UI\EditorFileBrowserTransportCreate

Parameters

$value string

Example

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->type('value');
?>

url

The remote url to call when creating a new record.

Returns

\Kendo\UI\EditorFileBrowserTransportCreate

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->url('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$create = new \Kendo\UI\EditorFileBrowserTransportCreate();
$create->url(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?