Oihana PHP System

LastModel extends ExistModel

Returns the last document in the model (by default 'modified').

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Methods

exist()  : bool
Indicates if the passed-in item exist.
last()  : mixed
Returns a the last document in the model.

Methods

exist()

Indicates if the passed-in item exist.

public exist([array<string|int, mixed> $init = [] ]) : bool
Parameters
$init : array<string|int, mixed> = []

The optional setting definition.

Return values
bool

True of the value exist in the model.

last()

Returns a the last document in the model.

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

        
On this page

Search results