CRM_Utils_OptionBag
class CRM_Utils_OptionBag implements ArrayAccess, IteratorAggregate, Countable
Class CRM_Utils_OptionBag.
Properties
protected | $data |
Methods
__construct(array $data = [])
No description
array
getArray()
No description
mixed
get(string $key, string|null $type = NULL, mixed $default = NULL)
Retrieve a value from the bag.
bool
has($key)
No description
bool
offsetExists(mixed $offset)
(PHP 5 >= 5.0.0) Whether a offset exists
mixed
offsetGet(mixed $offset)
(PHP 5 >= 5.0.0) Offset to retrieve
offsetSet(mixed $offset, mixed $value)
(PHP 5 >= 5.0.0) Offset to set
offsetUnset(mixed $offset)
(PHP 5 >= 5.0.0) Offset to unset
getIterator()
(PHP 5 >= 5.0.0) Retrieve an external iterator
int
count()
(PHP 5 >= 5.1.0) Count elements of an object
Details
at line 43
__construct(array $data = [])
at line 50
array
getArray()
at line 63
mixed
get(string $key, string|null $type = NULL, mixed $default = NULL)
Retrieve a value from the bag.
at line 84
bool
has($key)
at line 100
bool
offsetExists(mixed $offset)
(PHP 5 >= 5.0.0) Whether a offset exists
at line 115
mixed
offsetGet(mixed $offset)
(PHP 5 >= 5.0.0) Offset to retrieve
at line 130
offsetSet(mixed $offset, mixed $value)
(PHP 5 >= 5.0.0) Offset to set
at line 142
offsetUnset(mixed $offset)
(PHP 5 >= 5.0.0) Offset to unset
at line 155
Traversable
getIterator()
(PHP 5 >= 5.0.0) Retrieve an external iterator
at line 168
int
count()
(PHP 5 >= 5.1.0) Count elements of an object