Documentation

CRM_Mailing_BAO_QueryTestDataProvider
in package
implements Iterator

Provide data to the CRM_Mailing_BAO_QueryTest class

Table of Contents

Interfaces

Iterator

Properties

$dataset  : array<string|int, mixed>
$i  : int

Methods

_construct()  : mixed
current()  : array<string|int, mixed>
key()  : int
next()  : void
rewind()  : mixed
valid()  : bool

Properties

$dataset

private array<string|int, mixed> $dataset = [ ['fv' => ['mailing_name' => 'First%', 'mailing_open_status' => 'Y'], 'id' => [109, 110, 111, 112]], ['fv' => ['mailing_name' => 'First%', 'mailing_open_status' => 'N'], 'id' => [102, 103, 104, 105, 108]], /*bounce*/ ['fv' => ['mailing_name' => 'First%', 'mailing_delivery_status' => 'N'], 'id' => [105]], /*bounce*/ ['fv' => ['mailing_name' => 'First%', 'mailing_delivery_status' => 'Y'], 'id' => [102, 103, 104, 108, 109, 110, 111, 112]], ['fv' => ['mailing_name' => 'First%', 'mailing_reply_status' => 'Y'], 'id' => [103, 108, 110, 112]], ['fv' => ['mailing_name' => 'First%', 'mailing_reply_status' => 'N'], 'id' => [102, 104, 105, 109, 111]], ['fv' => ['mailing_name' => 'First%', 'mailing_click_status' => 'Y'], 'id' => [104, 108, 111, 112]], ['fv' => ['mailing_name' => 'First%', 'mailing_click_status' => 'N'], 'id' => [102, 103, 105, 109, 110]], /*bounce*/ ['fv' => ['mailing_name' => 'Second%', 'mailing_delivery_status' => 'N'], 'id' => []], /*bounce*/ ['fv' => ['mailing_name' => 'Second%', 'mailing_delivery_status' => 'Y'], 'id' => [102, 103, 104, 108, 109, 110, 111, 112]], ['fv' => ['mailing_name' => 'Second%', 'mailing_reply_status' => 'Y'], 'id' => [103]], ['fv' => ['mailing_name' => 'Second%', 'mailing_click_status' => 'Y'], 'id' => [104]], ['fv' => ['mailing_name' => 'Second%', 'mailing_click_status' => 'N'], 'id' => [102, 103, 108, 109, 110, 111, 112]], ['fv' => ['mailing_date_high' => '2011-05-25', 'mailing_open_status' => 'Y'], 'id' => [109, 110, 111, 112]], ['fv' => ['mailing_date_high' => '2011-05-25', 'mailing_open_status' => 'N'], 'id' => [102, 103, 104, 105, 108]], ['fv' => ['mailing_date_low' => '2011-05-26', 'mailing_open_status' => 'Y'], 'id' => [102]], ['fv' => ['mailing_date_low' => '2011-05-26', 'mailing_open_status' => 'N'], 'id' => [103, 104, 108, 109, 110, 111, 112]], ]

This dataset describes various form values and what contact IDs should be selected when the form values are applied to the database in dataset.xml

Methods

current()

public current() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

        
On this page

Search results