Documentation

CRM_Utils_OptionBag
in package
implements ArrayAccess, IteratorAggregate, Countable

Class CRM_Utils_OptionBag.

Table of Contents

Interfaces

ArrayAccess
IteratorAggregate
Countable

Properties

$data  : mixed

Methods

__construct()  : mixed
count()  : int
(PHP 5 >= 5.1.0) Count elements of an object
get()  : mixed
Retrieve a value from the bag.
getArray()  : array<string|int, mixed>
getIterator()  : Traversable
(PHP 5 &gt;= 5.0.0) Retrieve an external iterator
has()  : bool
offsetExists()  : bool
(PHP 5 &gt;= 5.0.0) Whether a offset exists
offsetGet()  : mixed
(PHP 5 &gt;= 5.0.0) Offset to retrieve
offsetSet()  : mixed
(PHP 5 &gt;= 5.0.0) Offset to set
offsetUnset()  : mixed
(PHP 5 &gt;= 5.0.0) Offset to unset

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

get()

Retrieve a value from the bag.

public get(string $key[, string|null $type = NULL ][, mixed $default = NULL ]) : mixed
Parameters
$key : string
$type : string|null = NULL
$default : mixed = NULL
Tags
throws
CRM_Core_Exception

getArray()

public getArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

has()

public has(mixed $key) : bool
Parameters
$key : mixed
Return values
bool

offsetExists()

(PHP 5 &gt;= 5.0.0) Whether a offset exists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed

An offset to check for.

Tags
link
http://php.net/manual/en/arrayaccess.offsetexists.php
Return values
bool

true on success or false on failure. The return value will be casted to boolean if non-boolean was returned.


        
On this page

Search results