AppModel

Extends \Model

Main Application Model

The application model base class contains useful functions and definitions for all models in the RMS.

author

Russell Toris - rctoris@wpi.edu

copyright

2014 Worcester Polytechnic Institute

link

https://github.com/WPI-RAIL/rms

since

RMS v 2.0.0

version 2.0.9
package

app.Model

Methods

Check if a field is equal to another. This is useful for password validations.

equalToField(string $check, string $otherField) : boolean

Arguments

$check

string

The name of the field to check.

$otherField

string

The name of the other field to check with the first one.

Response

boolean

Returns if the two fields have equal contents.