ProMailerQueue::set() method

Set value

Example

// Set a value for a property
$item->set('foo', 'bar');

// Set a property value directly
$item->foo = 'bar';

// Set a property using array access
$item['foo'] = 'bar';

Usage

$proMailerQueue->set($key, $value);

Arguments

NameType(s)Description
keystring

Name of property you want to set

valuemixed

Value of property

Return value

WireData ProMailerType

Object instance it was called from (method supports fluent interface).

Exceptions

Method can throw exceptions on error:

  • WireException - If given an invalid value type

See Also


ProMailerQueue methods and properties

API reference based on ProcessWire core version 3.0.244

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer