PHP Класс Devise\Pages\Fields\FieldValue

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$count integer Number of values on this field value
$json string Json string

Открытые методы

Метод Описание
__call ( string $name, mixed $args ) : mixed Allows us to set default values on a key if we do not have that key set in this FieldValue object
__construct ( string $json ) Create a new FieldValue object from json string
__get ( string $name ) : FieldValue Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object
__toString ( ) : string Convert to a empty string to avoid null pointer exceptions
get ( string $name, mixed $default = null ) : mixed Gets this field with this name, returns default if nothing is found.
isEmpty ( ) : boolean Is this object empty or not?
merge ( array $input ) : void Merges in the array data into the field object json
override ( array $input ) : void Overrides this data with the new input array
toArray ( ) : array Returns this object as array
toJSON ( ) : string Returns this object as json string

Описание методов

__call() публичный Метод

Allows us to set default values on a key if we do not have that key set in this FieldValue object
public __call ( string $name, mixed $args ) : mixed
$name string
$args mixed
Результат mixed

__construct() публичный Метод

Create a new FieldValue object from json string
public __construct ( string $json )
$json string

__get() публичный Метод

Avoids null pointer exceptions by treating this like the empty string we only ever reach this magical method when we have attempted to fetch a key that does not exist on this FieldValue object
public __get ( string $name ) : FieldValue
$name string
Результат FieldValue

__toString() публичный Метод

Convert to a empty string to avoid null pointer exceptions
public __toString ( ) : string
Результат string

get() публичный Метод

..
public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
Результат mixed

isEmpty() публичный Метод

Is this object empty or not?
public isEmpty ( ) : boolean
Результат boolean

merge() публичный Метод

Merges in the array data into the field object json
public merge ( array $input ) : void
$input array
Результат void

override() публичный Метод

Overrides this data with the new input array
public override ( array $input ) : void
$input array
Результат void

toArray() публичный Метод

Returns this object as array
public toArray ( ) : array
Результат array

toJSON() публичный Метод

Returns this object as json string
public toJSON ( ) : string
Результат string

Описание свойств

$count защищенное свойство

Number of values on this field value
protected int $count
Результат integer

$json защищенное свойство

Json string
protected string $json
Результат string