Et

Type
Class
Namespace
Craft
Inherits
Craft\Et
Since
1.0

Class Et

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
__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 (opens new window)

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 (opens new window)

Returns

integer (opens new window)

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 (opens new window)

Returns

integer (opens new window)

Signature

public integer getTimeout ( )

# phoneHome()

View source (opens new window)

Returns

Craft\EtModel, null (opens new window)

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 (opens new window)

Arguments

  • $allowRedirects

Returns

null (opens new window)

Signature

public null setAllowRedirects ( $allowRedirects )

# setData()

Sets custom data on the EtModel.

View source (opens new window)

Arguments

  • $data

Returns

null (opens new window)

Signature

public null setData ( $data )

# setDestinationFileName()

View source (opens new window)

Arguments

  • $destinationFileName

Returns

null (opens new window)

Signature

public null setDestinationFileName ( $destinationFileName )

# setHandle()

Signature

public void setHandle ( $handle )