| 1 |
<?php |
| 2 |
|
| 3 |
namespace AcyMailing\Types; |
| 4 |
|
| 5 |
use AcyMailing\Core\AcymObject; |
| 6 |
|
| 7 |
class OperatorInType extends AcymObject |
| 8 |
{ |
| 9 |
public $values = []; |
| 10 |
public $attributes = []; |
| 11 |
|
| 12 |
public function __construct() |
| 13 |
{ |
| 14 |
parent::__construct(); |
| 15 |
|
| 16 |
$this->values[] = acym_selectOption('in', 'ACYM_IN'); |
| 17 |
$this->values[] = acym_selectOption('not-in', 'ACYM_NOT_IN'); |
| 18 |
} |
| 19 |
|
| 20 |
public function display($name, $valueSelected = '') |
| 21 |
{ |
| 22 |
$operatorType = new OperatorType(); |
| 23 |
$operatorType->values = $this->values; |
| 24 |
$operatorType->attributes = $this->attributes; |
| 25 |
|
| 26 |
return $operatorType->display($name, $valueSelected); |
| 27 |
} |
| 28 |
} |
| 29 |
|