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
$endpoint$timeout(integer (opens new window))$connectTimeout(integer (opens new window))
Returns
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
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
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
Signature
public null setAllowRedirects ( $allowRedirects )
# setData()
Signature
public null setData ( $data )
# setDestinationFileName()
Signature
public null setDestinationFileName ( $destinationFileName )
# setHandle()
Signature
public void setHandle ( $handle )