Et

Type
Class
Namespace
Craft
Inherits
Craft\Et
Since
1.0

Class Et

See also http://craftcms.com

View source

Public Methods

MethodDescription
__construct()
getAllowRedirects()
getConnectTimeout()The maximum number of seconds to wait while trying to connect. Set to 0 to wait indefinitely.
getModel()
getTimeout()The maximum number of seconds to allow for an entire transfer to take place before timing out. Set 0 to wait indefinitely.
phoneHome()
setAllowRedirects()Whether or not to follow redirects on the request. Defaults to true.
setData()Sets custom data on the EtModel.
setDestinationFileName()
setHandle()

__construct()

View source

Arguments

Returns

Craft\Et

Signature

public Craft\Et __construct ( $endpoint, $timeout = 30, $connectTimeout = 30 )

getAllowRedirects()

Signature

public boolean getAllowRedirects ( )

getConnectTimeout()

The maximum number of seconds to wait while trying to connect. Set to 0 to wait indefinitely.

View source

Returns

integer

Signature

public integer getConnectTimeout ( )

getModel()

Signature

public Craft\EtModel getModel ( )

getTimeout()

The maximum number of seconds to allow for an entire transfer to take place before timing out. Set 0 to wait indefinitely.

View source

Returns

integer

Signature

public integer getTimeout ( )

phoneHome()

View source

Returns

Craft\EtModel, null

Throws

  • \Craft\EtException|\Exception

Signature

public Craft\EtModel, null phoneHome ( )

setAllowRedirects()

Whether or not to follow redirects on the request. Defaults to true.

View source

Arguments

  • $allowRedirects

Returns

null

Signature

public null setAllowRedirects ( $allowRedirects )

setData()

Sets custom data on the EtModel.

View source

Arguments

  • $data

Returns

null

Signature

public null setData ( $data )

setDestinationFileName()

View source

Arguments

  • $destinationFileName

Returns

null

Signature

public null setDestinationFileName ( $destinationFileName )

setHandle()

View source

Arguments

  • $handle

Signature

public void setHandle ( $handle )