PHP Класс Corcel\Options

Автор: José CI ([email protected])
Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$appends array The accessors to append to the model's array form.
$fillable array The attributes that are mass assignable.
$primaryKey string The primary key of the model.
$table string The database table used by the model.

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

Метод Описание
get ( string $name ) : string | array Gets option field by its name.
getAll ( ) : array Gets all the options.
getValueAttribute ( ) : value Gets the value.

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

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

Gets option field by its name.
public static get ( string $name ) : string | array
$name string
Результат string | array

getAll() публичный статический Метод

Gets all the options.
public static getAll ( ) : array
Результат array

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

Tries to unserialize the object and returns the value if that doesn't work.
public getValueAttribute ( ) : value
Результат value

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

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

The accessors to append to the model's array form.
protected array $appends
Результат array

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

The attributes that are mass assignable.
protected array $fillable
Результат array

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

The primary key of the model.
protected string $primaryKey
Результат string

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

The database table used by the model.
protected string $table
Результат string