SilverWare\MailChimp\Forms\MailChimpListField
An extension of the dropdown field class for selecting a MailChimp mailing list.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class MailChimpListField
extends DropdownField
implements
Flushable
{
- // members
- private static array $dependencies = ;
- protected integer $cacheTimeout = 300;
- // methods
- public static void flush()
- public static CacheInterface cache()
- public string Type()
- public $this setCacheTimeout()
- public integer getCacheTimeout()
- public array getSource()
- public string getCacheKey()
Hierarchy
Extends
- SilverStripe\Forms\DropdownField
Implements
- SilverStripe\Core\Flushable
Members
private
- $dependencies
—
array
Defines the injector dependencies for this object.
protected
- $cacheTimeout
—
integer
Defines the validity period of the cache in seconds.
Methods
public
- Type() — Answers the field type for the template.
- cache() — Answers the cache object.
- flush() — Clears the mailing list cache upon flush.
- getCacheKey() — Answers the key used with the cache.
- getCacheTimeout() — Answers the value of the cacheTimeout attribute.
- getSource() — Answers the source items for the field.
- setCacheTimeout() — Defines the value of the cacheTimeout attribute.