PHP Класс LMongo\Eloquent\Collection

Наследование: extends Illuminate\Support\Collection
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
add ( mixed $item ) : Collection Add an item to the collection.
contains ( mixed $key ) : boolean Determine if a key exists in the collection.
find ( mixed $key, mixed $default = null ) : Model Find a model in the collection by key.
lists ( $value, string $key = null ) : array Get an array with the values of a given key.
load ( ) : void Load a set of relationships onto the collection.
modelKeys ( ) : array Get the array of primary keys

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

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

Add an item to the collection.
public add ( mixed $item ) : Collection
$item mixed
Результат Collection

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

Determine if a key exists in the collection.
public contains ( mixed $key ) : boolean
$key mixed
Результат boolean

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

Find a model in the collection by key.
public find ( mixed $key, mixed $default = null ) : Model
$key mixed
$default mixed
Результат Model

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

Get an array with the values of a given key.
public lists ( $value, string $key = null ) : array
$key string
Результат array

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

Load a set of relationships onto the collection.
public load ( ) : void
Результат void

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

Get the array of primary keys
public modelKeys ( ) : array
Результат array