WhitePagesDisplayItem
in package
Specifies how a line/column should be rendered.
Table of Contents
- $label : string
- $type : WP_ITEM_TYPE
- $value : string
- __construct() : mixed
- Constructor
- export() : array<string|int, mixed>
- Exports the item as an array.
- import() : WhitePagesDisplayItem
- Imports the display item from a string array.
Properties
$label
public
string
$label
label of this item
$type
public
WP_ITEM_TYPE
$type
render type of item
$value
public
string
$value
syntax of this item
Methods
__construct()
Constructor
public
__construct([string $label = 'First name' ][, WP_ITEM_TYPE $type = WP_ITEM_TYPE::TEXT ][, string $value = 'givenName' ]) : mixed
Parameters
- $label : string = 'First name'
-
label
- $type : WP_ITEM_TYPE = WP_ITEM_TYPE::TEXT
-
render type
- $value : string = 'givenName'
-
value
Return values
mixed —export()
Exports the item as an array.
public
export() : array<string|int, mixed>
Return values
array<string|int, mixed> —data
import()
Imports the display item from a string array.
public
static import(array<string, string> $data) : WhitePagesDisplayItem
Parameters
- $data : array<string, string>
-
data
Return values
WhitePagesDisplayItem —item